fixed last commit

This commit is contained in:
oy 2011-06-02 17:38:36 +02:00
parent 101d9de3c3
commit 7df537fd68

View file

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