diff options
author | madmaxoft <github@xoft.cz> | 2014-02-26 21:37:38 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-26 21:37:38 +0100 |
commit | aaddc98b46c2b918e908287f53a137d2fb5cf697 (patch) | |
tree | 0525aeeacebed1d299725d7050546f654b790424 /src/MersenneTwister.h | |
parent | APIDump: Added Geometry file to project. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/MersenneTwister.h | 2 |
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] = |