diff options
author | Wohlstand <admin@wohlnet.ru> | 2018-06-03 15:46:50 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2018-06-03 15:46:50 +0300 |
commit | adcf702a7e18846ad4f8753ec5a32cf56585ca23 (patch) | |
tree | d2b357b91695868c8d2b48ecf6e4cd82d2f9cfe6 /src/fraction.hpp | |
parent | c4c36c82919b3136b9592db1f7872fc7d4907589 (diff) | |
download | libADLMIDI-adcf702a7e18846ad4f8753ec5a32cf56585ca23.tar.gz libADLMIDI-adcf702a7e18846ad4f8753ec5a32cf56585ca23.tar.bz2 libADLMIDI-adcf702a7e18846ad4f8753ec5a32cf56585ca23.zip |
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
Diffstat (limited to 'src/fraction.hpp')
-rw-r--r-- | src/fraction.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <cmath> #include <limits> + /* 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<typename inttype> void fraction<inttype>::Optim() { @@ -110,6 +115,10 @@ void fraction<inttype>::Optim() //fprintf(stderr, "result: %d/%d\n\n", nom(), denom()); } +#ifdef _MSC_VER +#pragma warning(default:4146) +#endif + template<typename inttype> inline const fraction<inttype> abs(const fraction<inttype> &f) { |