about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/math.h b/src/base/math.h
index 549c8405..d58dbf10 100644
--- a/src/base/math.h
+++ b/src/base/math.h
@@ -39,11 +39,11 @@ inline float frandom() { return rand()/(float)(RAND_MAX); }
 inline int f2fx(float v) { return (int)(v*(float)(1<<10)); }
 inline float fx2f(int v) { return v*(1.0f/(1<<10)); }
 
-inline unsigned gcd(unsigned a, unsigned b)
+inline int gcd(int a, int b)
 {
 	while(b != 0)
 	{
-		unsigned c = a % b;
+		int c = a % b;
 		a = b;
 		b = c;
 	}