diff --git a/src/RageUtil.cpp b/src/RageUtil.cpp index b550c0287e..fa41b8fd68 100644 --- a/src/RageUtil.cpp +++ b/src/RageUtil.cpp @@ -125,7 +125,7 @@ namespace /* [0..1) */ { /* we get values in [0..(2^32-1)]; divide by 2^32. */ - double rand = double(g_LuaPRNG()) / double(0x100000000f); + double rand = double(g_LuaPRNG()) / double(0x100000000llu); lua_pushnumber( L, rand ); }