COMMON: Attempt to silence MSVC warning in Common::gcd.

svn-id: r53496
This commit is contained in:
Johannes Schickel 2010-10-15 14:14:51 +00:00
parent d221176c47
commit 8fc3c21bd0

View File

@ -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;