aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-14 17:13:31 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-14 17:13:31 -0200
commit4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (patch)
treed11eee681ce7b01a273e489f47e070494b51de1a /lvm.c
parentb6ebbb2fee13aa223fdd12921cd0411e02db9dd0 (diff)
downloadlua-4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec.tar.gz
lua-4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec.tar.bz2
lua-4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec.zip
new implementation of hash tables.
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 2f3cdb51..69044464 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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 */