diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.7 2004/10/06 18:34:16 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.8 2004/11/24 18:55:42 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -393,7 +393,7 @@ static TValue *newkey (lua_State *L, Table *t, const TValue *key) { | |||
393 | */ | 393 | */ |
394 | const TValue *luaH_getnum (Table *t, int key) { | 394 | const TValue *luaH_getnum (Table *t, int key) { |
395 | /* (1 <= key && key <= t->sizearray) */ | 395 | /* (1 <= key && key <= t->sizearray) */ |
396 | if ((unsigned int)(key-1) < (unsigned int)t->sizearray) | 396 | if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) |
397 | return &t->array[key-1]; | 397 | return &t->array[key-1]; |
398 | else { | 398 | else { |
399 | lua_Number nk = cast(lua_Number, key); | 399 | lua_Number nk = cast(lua_Number, key); |