From b0933193bfebb12f84d9d30d0663b82f9a4493af Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 19 Feb 2014 16:14:37 +0000 Subject: [PATCH] Disambiguation in Point::getAngleToPoint --- modules/juce_graphics/geometry/juce_Point.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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