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.23 2005/05/17 19:49:15 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.24 2005/05/20 15:53: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 | */ |
| @@ -145,7 +145,7 @@ static int findindex (lua_State *L, Table *t, StkId key) { | |||
| 145 | if (luaO_rawequalObj(key2tval(n), key) || | 145 | if (luaO_rawequalObj(key2tval(n), key) || |
| 146 | (ttype(gkey(n)) == LUA_TDEADKEY && iscollectable(key) && | 146 | (ttype(gkey(n)) == LUA_TDEADKEY && iscollectable(key) && |
| 147 | gcvalue(gkey(n)) == gcvalue(key))) { | 147 | gcvalue(gkey(n)) == gcvalue(key))) { |
| 148 | i = n - gnode(t, 0); /* key index in hash table */ | 148 | i = cast(int, n - gnode(t, 0)); /* key index in hash table */ |
| 149 | /* hash elements are numbered after array ones */ | 149 | /* hash elements are numbered after array ones */ |
| 150 | return i + t->sizearray; | 150 | return i + t->sizearray; |
| 151 | } | 151 | } |
