From 1f55dbc69933d3641a20ada064d2b3d39e58fdaf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 26 Nov 2002 10:53:29 -0200 Subject: details --- lbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 909a455d..6025addc 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.110 2002/11/25 17:33:33 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.111 2002/11/26 08:45:36 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -223,7 +223,7 @@ static int luaB_pairs (lua_State *L) { static int luaB_ipairs (lua_State *L) { lua_Number i = lua_tonumber(L, 2); luaL_checktype(L, 1, LUA_TTABLE); - if (i == 0 && lua_isnull(L, 2)) { /* `for' start? */ + if (i == 0 && lua_isnone(L, 2)) { /* `for' start? */ lua_getglobal(L, "ipairs"); /* return generator, */ lua_pushvalue(L, 1); /* state, */ lua_pushnumber(L, 0); /* and initial value */ -- cgit v1.2.3-55-g6feb