Skip to content

Commit

Permalink
Fix compiler warning about sign comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed May 12, 2015
1 parent ecc514f commit b70e67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/lua_api/l_mapgen.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit b70e67d

Please sign in to comment.