From 51778687731a0b1db8c528071e5119abf19ec0e5 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 7 Apr 2018 08:05:50 +0300 Subject: [PATCH] Revert "Removed workaround for MSVC 2017 compiler bug" This reverts commit 9da92facda33457beeccb0fbcd035224baeab11e. --- game-music-emu/gme/Fir_Resampler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/game-music-emu/gme/Fir_Resampler.cpp b/game-music-emu/gme/Fir_Resampler.cpp index 7f0deeca3..a311895a2 100644 --- a/game-music-emu/gme/Fir_Resampler.cpp +++ b/game-music-emu/gme/Fir_Resampler.cpp @@ -23,6 +23,10 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #undef PI #define PI 3.1415926535897932384626433832795029 +#if _MSC_VER >= 1911 +#pragma float_control(precise, on, push) +#endif // _MSC_VER >= 1911 + static void gen_sinc( double rolloff, int width, double offset, double spacing, double scale, int count, short* out ) { @@ -52,6 +56,10 @@ static void gen_sinc( double rolloff, int width, double offset, double spacing, } } +#if _MSC_VER >= 1911 +#pragma float_control(pop) +#endif // _MSC_VER >= 1911 + Fir_Resampler_::Fir_Resampler_( int width, sample_t* impulses_ ) : width_( width ), write_offset( width * stereo - stereo ),