We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 306b067 commit bc0318dCopy full SHA for bc0318d
src/script/lua_api/l_noise.cpp
@@ -440,7 +440,7 @@ int LuaPseudoRandom::create_object(lua_State *L)
440
{
441
NO_MAP_LOCK_REQUIRED;
442
443
- int seed = luaL_checknumber(L, 1);
+ u64 seed = luaL_checknumber(L, 1);
444
LuaPseudoRandom *o = new LuaPseudoRandom(seed);
445
*(void **)(lua_newuserdata(L, sizeof(void *))) = o;
446
luaL_getmetatable(L, className);
@@ -537,8 +537,8 @@ int LuaPcgRandom::create_object(lua_State *L)
537
538
539
540
- lua_Integer seed = luaL_checknumber(L, 1);
541
- LuaPcgRandom *o = lua_isnumber(L, 2) ?
+ LuaPcgRandom *o = lua_isnumber(L, 2) ?
542
new LuaPcgRandom(seed, lua_tointeger(L, 2)) :
543
new LuaPcgRandom(seed);
544
0 commit comments