diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-19 15:04:50 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-19 15:04:50 +0300 |
commit | c0873278718da57ff19194377a35601027926c5f (patch) | |
tree | 6fca461d067a1e615788cecf7a74c175f0033fc8 /src/fraction.hpp | |
parent | 5a194eb263125e5505cca3ec0256c7efa348eaa4 (diff) | |
parent | 1026ecd3fd8dc865fb3a85ab4a130d9d1b494fd9 (diff) | |
download | libADLMIDI-c0873278718da57ff19194377a35601027926c5f.tar.gz libADLMIDI-c0873278718da57ff19194377a35601027926c5f.tar.bz2 libADLMIDI-c0873278718da57ff19194377a35601027926c5f.zip |
Merge branch 'master' into stable
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) { |