diff options
| author | oy <Tom_Adams@web.de> | 2011-06-02 17:38:36 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-02 17:38:36 +0200 |
| commit | 7df537fd687a6e6fd7797c1f98eb99f2376b4ed0 (patch) | |
| tree | fec30a61d4cf9827580ba776dfdf51a89b626963 /src/base/math.h | |
| parent | 101d9de3c3371a904b3a6e49e8b48f746d2cfbbb (diff) | |
| download | zcatch-7df537fd687a6e6fd7797c1f98eb99f2376b4ed0.tar.gz zcatch-7df537fd687a6e6fd7797c1f98eb99f2376b4ed0.zip | |
fixed last commit
Diffstat (limited to 'src/base/math.h')
| -rw-r--r-- | src/base/math.h | 4 |
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; } |