From adcf702a7e18846ad4f8753ec5a32cf56585ca23 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 3 Jun 2018 15:46:50 +0300 Subject: Bugfixes - Fixed all MSVC 2015/2017 warnings in both 32 and 64 bit builds - Fixed weird behavior when using adl_setHVibrato, adl_setHTremolo, adl_setScaleModulators, and adl_setVolumeRangeModel when passing the -1 "Auto" state - Move arpeggio counter into the MIDIPlay class as originally it was a global static variable which is ugly and danger when running multiple instances of the same library --- src/fraction.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/fraction.hpp') diff --git a/src/fraction.hpp b/src/fraction.hpp index 1ec10ab..1c0a38d 100644 --- a/src/fraction.hpp +++ b/src/fraction.hpp @@ -4,6 +4,7 @@ #include #include + /* Fraction number handling. * Copyright (C) 1992,2001 Bisqwit (http://iki.fi/bisqwit/) */ @@ -82,6 +83,10 @@ public: self &operator= (long double orig); }; +#ifdef _MSC_VER +#pragma warning(disable:4146) +#endif + template void fraction::Optim() { @@ -110,6 +115,10 @@ void fraction::Optim() //fprintf(stderr, "result: %d/%d\n\n", nom(), denom()); } +#ifdef _MSC_VER +#pragma warning(default:4146) +#endif + template inline const fraction abs(const fraction &f) { -- cgit v1.2.3