aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lapi.c b/lapi.c
index 685f1ef7..371a2526 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.56 1999/11/11 17:02:40 roberto Exp roberto $ 2** $Id: lapi.c,v 1.57 1999/11/22 13:12:07 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -420,10 +420,10 @@ const char *lua_nextvar (lua_State *L, const char *varname) {
420int luaA_next (lua_State *L, const Hash *t, int i) { 420int luaA_next (lua_State *L, const Hash *t, int i) {
421 int tsize = t->size; 421 int tsize = t->size;
422 for (; i<tsize; i++) { 422 for (; i<tsize; i++) {
423 Node *n = node(L, t, i); 423 Node *n = node(t, i);
424 if (ttype(val(L, n)) != LUA_T_NIL) { 424 if (ttype(val(n)) != LUA_T_NIL) {
425 luaA_pushobject(L, key(L, n)); 425 luaA_pushobject(L, key(n));
426 luaA_pushobject(L, val(L, n)); 426 luaA_pushobject(L, val(n));
427 return i+1; /* index to be used next time */ 427 return i+1; /* index to be used next time */
428 } 428 }
429 } 429 }