mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Workaround for Intel compiler warning.
This commit is contained in:
parent
af559c47ee
commit
1bc02ee8e5
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue