Skip to content

Commit b70e67d

Browse files
committedMay 12, 2015
Fix compiler warning about sign comparison
1 parent ecc514f commit b70e67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/script/lua_api/l_mapgen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ bool read_schematic_def(lua_State *L, int index,
291291

292292
//// Get Y-slice probability values (if present)
293293
schem->slice_probs = new u8[size.Y];
294-
for (i = 0; i != size.Y; i++)
294+
for (i = 0; i != (u32) size.Y; i++)
295295
schem->slice_probs[i] = MTSCHEM_PROB_ALWAYS;
296296

297297
lua_getfield(L, index, "yslice_prob");

0 commit comments

Comments
 (0)
Please sign in to comment.