summaryrefslogtreecommitdiffstats
path: root/src/MersenneTwister.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-26 21:37:38 +0100
committermadmaxoft <github@xoft.cz>2014-02-26 21:37:38 +0100
commitaaddc98b46c2b918e908287f53a137d2fb5cf697 (patch)
tree0525aeeacebed1d299725d7050546f654b790424 /src/MersenneTwister.h
parentAPIDump: Added Geometry file to project. (diff)
downloadcuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.gz
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.bz2
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.lz
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.xz
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.zst
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.zip
Diffstat (limited to 'src/MersenneTwister.h')
-rw-r--r--src/MersenneTwister.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MersenneTwister.h b/src/MersenneTwister.h
index 784ac605d..f4c7b0699 100644
--- a/src/MersenneTwister.h
+++ b/src/MersenneTwister.h
@@ -207,7 +207,7 @@ inline void MTRand::seed( uint32 *const bigSeed, const uint32 seedLength )
initialize(19650218UL);
int i = 1;
uint32 j = 0;
- int k = ( N > seedLength ? N : seedLength );
+ int k = ( (uint32)N > seedLength ? (uint32)N : seedLength );
for( ; k; --k )
{
state[i] =