aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 2a5c30d1..13ea4fa1 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.21 1998/01/02 17:46:32 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.22 1998/01/07 16:26:48 roberto Exp roberto $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -263,7 +263,7 @@ static int getnarg (lua_Object table)
263 lua_Object temp; 263 lua_Object temp;
264 /* temp = table.n */ 264 /* temp = table.n */
265 lua_pushobject(table); lua_pushstring("n"); temp = lua_rawgettable(); 265 lua_pushobject(table); lua_pushstring("n"); temp = lua_rawgettable();
266 return (lua_isnumber(temp) ? lua_getnumber(temp) : MAX_WORD); 266 return (lua_isnumber(temp) ? lua_getnumber(temp) : MAX_INT);
267} 267}
268 268
269static void luaI_call (void) 269static void luaI_call (void)
@@ -283,7 +283,7 @@ static void luaI_call (void)
283 lua_Object temp; 283 lua_Object temp;
284 /* temp = arg[i+1] */ 284 /* temp = arg[i+1] */
285 lua_pushobject(arg); lua_pushnumber(i+1); temp = lua_rawgettable(); 285 lua_pushobject(arg); lua_pushnumber(i+1); temp = lua_rawgettable();
286 if (narg == MAX_WORD && lua_isnil(temp)) 286 if (narg == MAX_INT && lua_isnil(temp))
287 break; 287 break;
288 lua_pushobject(temp); 288 lua_pushobject(temp);
289 } 289 }