aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-05-13 00:04:30 +0200
committerest31 <MTest31@outlook.com>2015-05-13 00:04:30 +0200
commitb70e67df8c55c0ccf3c95f9c45e194d1433ba53f (patch)
tree33b88c73cabdb018278ebd03f595dd13d54502ff /src
parentecc514f11b77690bc1d2d782c8f00a9b045b4f4f (diff)
downloadminetest-b70e67df8c55c0ccf3c95f9c45e194d1433ba53f.tar.gz
minetest-b70e67df8c55c0ccf3c95f9c45e194d1433ba53f.tar.bz2
minetest-b70e67df8c55c0ccf3c95f9c45e194d1433ba53f.zip
Fix compiler warning about sign comparison
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 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");