From da18ec5d5470c7248296509b8d478b4d4e3f20aa Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 1 Mar 1999 14:49:04 -0300 Subject: warnings... --- lapi.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lapi.c b/lapi.c index e6685ee9..aea8462d 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 1.38 1999/02/23 14:57:28 roberto Exp roberto $ +** $Id: lapi.c,v 1.39 1999/02/25 19:13:56 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -461,16 +461,16 @@ char *lua_nextvar (char *varname) { int luaA_next (Hash *t, int i) { - Node *n; int tsize = nhash(t); - while (i < tsize && ttype(val(n=node(t, i))) == LUA_T_NIL) i++; - if (i >= tsize) - return 0; - else { - luaA_pushobject(ref(n)); - luaA_pushobject(val(n)); - return i+1; + for (; i