fix some warnings

Removed homebrew round() - now we just use the math library.
This commit is contained in:
ac-stef
2015-08-03 20:57:50 +02:00
parent 826499c12d
commit 50d1413d5c
6 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -870,7 +870,7 @@ uint randomMT()
else next = 0;
}
uint y = (state[cur] & 0x80000000U) | (state[next] & 0x7FFFFFFFU);
state[cur] = y = state[cur < N-M ? cur + M : cur + M-N] ^ (y >> 1) ^ (-(y & 1U) & K);
state[cur] = y = state[cur < N-M ? cur + M : cur + M-N] ^ (y >> 1) ^ (-int(y & 1U) & K);
y ^= (y >> 11);
y ^= (y << 7) & 0x9D2C5680U;
y ^= (y << 15) & 0xEFC60000U;