From: est31 Date: Tue, 12 May 2015 22:04:30 +0000 (+0200) Subject: Fix compiler warning about sign comparison X-Git-Tag: 0.4.13~278 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b70e67df8c55c0ccf3c95f9c45e194d1433ba53f;p=oweals%2Fminetest.git Fix compiler warning about sign comparison --- diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 3cb52eab4..d94f902c4 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -291,7 +291,7 @@ bool read_schematic_def(lua_State *L, int index, //// Get Y-slice probability values (if present) schem->slice_probs = new u8[size.Y]; - for (i = 0; i != size.Y; i++) + for (i = 0; i != (u32) size.Y; i++) schem->slice_probs[i] = MTSCHEM_PROB_ALWAYS; lua_getfield(L, index, "yslice_prob");