From 9906788e9bf2d89f450797480e620f11f544b5ec Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 22 Dec 2015 11:43:28 +0000 Subject: [PATCH] Avoided a Visual Studio compiler warning in Rectangle --- modules/juce_graphics/geometry/juce_Rectangle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_graphics/geometry/juce_Rectangle.h b/modules/juce_graphics/geometry/juce_Rectangle.h index 952953ace9..b3b74d06c9 100644 --- a/modules/juce_graphics/geometry/juce_Rectangle.h +++ b/modules/juce_graphics/geometry/juce_Rectangle.h @@ -914,8 +914,8 @@ private: Point pos; ValueType w, h; - static int parseIntAfterSpace (StringRef s) noexcept - { return s.text.findEndOfWhitespace().getIntValue32(); } + static ValueType parseIntAfterSpace (StringRef s) noexcept + { return static_cast (s.text.findEndOfWhitespace().getIntValue32()); } void copyWithRounding (Rectangle& result) const noexcept { result = getSmallestIntegerContainer(); } void copyWithRounding (Rectangle& result) const noexcept { result = toFloat(); }