Fix conversion warning

This commit is contained in:
Chris Thrasher 2022-05-16 09:52:49 -06:00 committed by Lukas Dürrenberger
parent b2ab6d6ab3
commit 488b139ea7

View File

@ -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)