From 1bc02ee8e5ee9a3e79d4204dbb330d9780ec4258 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 29 Jan 2013 17:14:19 +0000 Subject: [PATCH] Workaround for Intel compiler warning. --- modules/juce_core/maths/juce_MathsFunctions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/juce_core/maths/juce_MathsFunctions.h b/modules/juce_core/maths/juce_MathsFunctions.h index 6d0336571d..e41ebfa94b 100644 --- a/modules/juce_core/maths/juce_MathsFunctions.h +++ b/modules/juce_core/maths/juce_MathsFunctions.h @@ -361,10 +361,6 @@ inline int roundToInt (const FloatType value) noexcept #else return n.asInt [0]; #endif - - #ifdef __INTEL_COMPILER - #pragma float_control (pop) - #endif } #if JUCE_MSVC @@ -381,6 +377,10 @@ inline int roundToInt (const FloatType value) noexcept */ inline int roundToIntAccurate (const double value) noexcept { + #ifdef __INTEL_COMPILER + #pragma float_control (pop) + #endif + return roundToInt (value + 1.5e-8); }