mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed last commit
This commit is contained in:
parent
101d9de3c3
commit
7df537fd68
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue