diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:13:31 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:13:31 -0200 |
commit | 4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (patch) | |
tree | d11eee681ce7b01a273e489f47e070494b51de1a /lvm.c | |
parent | b6ebbb2fee13aa223fdd12921cd0411e02db9dd0 (diff) | |
download | lua-4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec.tar.gz lua-4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec.tar.bz2 lua-4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec.zip |
new implementation of hash tables.
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.61 1999/09/06 13:55:09 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.62 1999/09/17 16:53:54 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -107,7 +107,7 @@ void luaV_gettable (void) { | |||
107 | int tg = table->value.a->htag; | 107 | int tg = table->value.a->htag; |
108 | im = luaT_getim(tg, IM_GETTABLE); | 108 | im = luaT_getim(tg, IM_GETTABLE); |
109 | if (ttype(im) == LUA_T_NIL) { /* and does not have a "gettable" method */ | 109 | if (ttype(im) == LUA_T_NIL) { /* and does not have a "gettable" method */ |
110 | TObject *h = luaH_get(avalue(table), table+1); | 110 | const TObject *h = luaH_get(avalue(table), table+1); |
111 | if (ttype(h) == LUA_T_NIL && | 111 | if (ttype(h) == LUA_T_NIL && |
112 | (ttype(im=luaT_getim(tg, IM_INDEX)) != LUA_T_NIL)) { | 112 | (ttype(im=luaT_getim(tg, IM_INDEX)) != LUA_T_NIL)) { |
113 | /* result is nil and there is an "index" tag method */ | 113 | /* result is nil and there is an "index" tag method */ |