Fix compiler warnings.
Thanks to Demetri Obenour.
This commit is contained in:
@@ -1606,7 +1606,7 @@ luaC_barriert(L,t,key);
|
||||
return gval(mp);
|
||||
}
|
||||
static const TValue*luaH_getnum(Table*t,int key){
|
||||
if(cast(unsigned int,key-1)<cast(unsigned int,t->sizearray))
|
||||
if(cast(unsigned int,key)-1<cast(unsigned int,t->sizearray))
|
||||
return&t->array[key-1];
|
||||
else{
|
||||
lua_Number nk=cast_num(key);
|
||||
|
||||
Reference in New Issue
Block a user