From b12d4c33780c582dede7dbda37797cf32dd9fb28 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 11 May 2017 15:21:04 +0100 Subject: [PATCH] (Fixed a warning in the last commit) --- modules/juce_graphics/geometry/juce_Rectangle.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/juce_graphics/geometry/juce_Rectangle.h b/modules/juce_graphics/geometry/juce_Rectangle.h index fbb4470b13..dca99f300f 100644 --- a/modules/juce_graphics/geometry/juce_Rectangle.h +++ b/modules/juce_graphics/geometry/juce_Rectangle.h @@ -971,9 +971,9 @@ private: void copyWithRounding (Rectangle& result) const noexcept { result = toDouble(); } static int floorAsInt (int n) noexcept { return n; } - static int floorAsInt (float n) noexcept { return n > (float) std::numeric_limits::min() ? std::floor (n) : (int) std::numeric_limits::min(); } - static int floorAsInt (double n) noexcept { return n > (double) std::numeric_limits::min() ? std::floor (n) : (int) std::numeric_limits::min(); } + static int floorAsInt (float n) noexcept { return n > (float) std::numeric_limits::min() ? (int) std::floor (n) : std::numeric_limits::min(); } + static int floorAsInt (double n) noexcept { return n > (double) std::numeric_limits::min() ? (int) std::floor (n) : std::numeric_limits::min(); } static int ceilAsInt (int n) noexcept { return n; } - static int ceilAsInt (float n) noexcept { return n < (float) std::numeric_limits::max() ? std::ceil (n) : (int) std::numeric_limits::max(); } - static int ceilAsInt (double n) noexcept { return n < (double) std::numeric_limits::max() ? std::ceil (n) : (int) std::numeric_limits::max(); } + static int ceilAsInt (float n) noexcept { return n < (float) std::numeric_limits::max() ? (int) std::ceil (n) : std::numeric_limits::max(); } + static int ceilAsInt (double n) noexcept { return n < (double) std::numeric_limits::max() ? (int) std::ceil (n) : std::numeric_limits::max(); } };