aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2015-07-22 10:11:34 +0200
committerest31 <MTest31@outlook.com>2015-07-25 17:38:04 +0200
commit454a29037061ba62d89af41ecae23b4424f41ea5 (patch)
treef823e947d1a7a0c55122bd77885c47fa3a9f12fd /src
parentffd0ef16c41e85dc024760855bc54f116cfeebcf (diff)
downloadminetest-454a29037061ba62d89af41ecae23b4424f41ea5.tar.gz
minetest-454a29037061ba62d89af41ecae23b4424f41ea5.tar.bz2
minetest-454a29037061ba62d89af41ecae23b4424f41ea5.zip
Fix MSVC number conversion warning
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_mapgen.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}