aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ltable.c b/ltable.c
index d2ced6fc..35a7eec8 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.14 1998/08/10 21:36:32 roberto Exp roberto $ 2** $Id: ltable.c,v 1.15 1998/08/11 16:38:34 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*/
@@ -181,8 +181,7 @@ TObject *luaH_set (Hash *t, TObject *ref)
181} 181}
182 182
183 183
184static Node *hashnext (Hash *t, int i) 184static Node *hashnext (Hash *t, int i) {
185{
186 Node *n; 185 Node *n;
187 int tsize = nhash(t); 186 int tsize = nhash(t);
188 if (i >= tsize) 187 if (i >= tsize)
@@ -196,9 +195,7 @@ static Node *hashnext (Hash *t, int i)
196 return node(t, i); 195 return node(t, i);
197} 196}
198 197
199Node *luaH_next (TObject *o, TObject *r) 198Node *luaH_next (Hash *t, TObject *r) {
200{
201 Hash *t = avalue(o);
202 if (ttype(r) == LUA_T_NIL) 199 if (ttype(r) == LUA_T_NIL)
203 return hashnext(t, 0); 200 return hashnext(t, 0);
204 else { 201 else {