aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 909a455d..6025addc 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.110 2002/11/25 17:33:33 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.111 2002/11/26 08:45:36 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -223,7 +223,7 @@ static int luaB_pairs (lua_State *L) {
223static int luaB_ipairs (lua_State *L) { 223static int luaB_ipairs (lua_State *L) {
224 lua_Number i = lua_tonumber(L, 2); 224 lua_Number i = lua_tonumber(L, 2);
225 luaL_checktype(L, 1, LUA_TTABLE); 225 luaL_checktype(L, 1, LUA_TTABLE);
226 if (i == 0 && lua_isnull(L, 2)) { /* `for' start? */ 226 if (i == 0 && lua_isnone(L, 2)) { /* `for' start? */
227 lua_getglobal(L, "ipairs"); /* return generator, */ 227 lua_getglobal(L, "ipairs"); /* return generator, */
228 lua_pushvalue(L, 1); /* state, */ 228 lua_pushvalue(L, 1); /* state, */
229 lua_pushnumber(L, 0); /* and initial value */ 229 lua_pushnumber(L, 0); /* and initial value */