diff options
author | Johannes Schickel | 2010-10-15 14:14:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-10-15 14:14:51 +0000 |
commit | 8fc3c21bd0d2b3030284c3be4656240bff37d667 (patch) | |
tree | defde95b97433cce7ab193175bef805d678fbd80 /common | |
parent | d221176c47d33618be8ab8f3a81da6384037d751 (diff) | |
download | scummvm-rg350-8fc3c21bd0d2b3030284c3be4656240bff37d667.tar.gz scummvm-rg350-8fc3c21bd0d2b3030284c3be4656240bff37d667.tar.bz2 scummvm-rg350-8fc3c21bd0d2b3030284c3be4656240bff37d667.zip |
COMMON: Attempt to silence MSVC warning in Common::gcd.
svn-id: r53496
Diffstat (limited to 'common')
-rw-r--r-- | common/algorithm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/algorithm.h b/common/algorithm.h index 9d22af4090..67ffe122f9 100644 --- a/common/algorithm.h +++ b/common/algorithm.h @@ -242,8 +242,8 @@ void sort(T first, T last) { */ template<class T> T gcd(T a, T b) { - if (a <= 0) a = -a; - if (b <= 0) b = -b; + if (a < 0) a = -a; + if (b < 0) b = -b; while (a > 0) { T tmp = a; a = b % a; |