mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fix conversion warning
This commit is contained in:
parent
b2ab6d6ab3
commit
488b139ea7
@ -37,7 +37,7 @@ namespace sf
|
||||
|
||||
bool operator==(const sf::Vector2f& lhs, const ApproxVec2& rhs)
|
||||
{
|
||||
return (lhs - rhs.vector).length() == doctest::Approx(0.0);
|
||||
return static_cast<double>((lhs - rhs.vector).length()) == doctest::Approx(0.0);
|
||||
}
|
||||
|
||||
bool operator==(const sf::Vector3f& lhs, const ApproxVec3& rhs)
|
||||
|
Loading…
Reference in New Issue
Block a user