diff --git a/modules/juce_graphics/geometry/juce_Point.h b/modules/juce_graphics/geometry/juce_Point.h index 3df567b7d8..c2df75fca1 100644 --- a/modules/juce_graphics/geometry/juce_Point.h +++ b/modules/juce_graphics/geometry/juce_Point.h @@ -151,7 +151,8 @@ public: */ FloatType getAngleToPoint (Point other) const noexcept { - return static_cast (std::atan2 (other.x - x, y - other.y)); + return static_cast (std::atan2 (static_cast (other.x - x), + static_cast (y - other.y))); } /** Returns the point that would be reached by rotating this point clockwise