From: SmallJoker Date: Wed, 22 Jul 2015 08:11:34 +0000 (+0200) Subject: Fix MSVC number conversion warning X-Git-Tag: 0.4.13~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=454a29037061ba62d89af41ecae23b4424f41ea5;p=oweals%2Fminetest.git Fix MSVC number conversion warning --- diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 2d67e2f29..bf5e3631e 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -674,7 +674,7 @@ int ModApiMapgen::l_set_gen_notify(lua_State *L) lua_pushnil(L); while (lua_next(L, 2)) { if (lua_isnumber(L, -1)) - emerge->gen_notify_on_deco_ids.insert(lua_tonumber(L, -1)); + emerge->gen_notify_on_deco_ids.insert((u32)lua_tonumber(L, -1)); lua_pop(L, 1); } }