mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 16:33:50 +00:00
COMMON: Attempt to silence MSVC warning in Common::gcd.
svn-id: r53496
This commit is contained in:
parent
d221176c47
commit
8fc3c21bd0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user