eliminated a whole bunch of gcc warnings

This commit is contained in:
Bill Meltsner
2010-02-09 13:21:25 -05:00
parent 3ebcee1e17
commit 73aba4bdd4
11 changed files with 242 additions and 230 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ namespace box2d
for(int i = 1;i<=argc;i++)
{
size_t bpos = (size_t)(lua_tointeger(L, i)-1);
if(bpos < 0 || bpos > 16)
if(bpos > 16)
return luaL_error(L, "Values must be in range 1-16.");
b.set(bpos, true);
}