From 3a9516ffc8de0d33051f83dc786dba615d6bac49 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 6 Apr 1997 11:08:08 -0300 Subject: luaL check functions do not need the function name (it can be accessed via luadebug interface). --- table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table.c') diff --git a/table.c b/table.c index 2bef4d0f..a1ab1178 100644 --- a/table.c +++ b/table.c @@ -3,7 +3,7 @@ ** Module to control static tables */ -char *rcs_table="$Id: table.c,v 2.65 1997/03/31 14:17:09 roberto Exp roberto $"; +char *rcs_table="$Id: table.c,v 2.66 1997/04/04 15:35:37 roberto Exp roberto $"; #include "luamem.h" #include "auxlib.h" @@ -208,7 +208,7 @@ void luaI_nextvar (void) if (lua_isnil(lua_getparam(1))) next = 0; else - next = luaI_findsymbolbyname(luaL_check_string(1, "nextvar")) + 1; + next = luaI_findsymbolbyname(luaL_check_string(1)) + 1; while (next < lua_ntable && s_ttype(next) == LUA_T_NIL) next++; if (next < lua_ntable) { -- cgit v1.2.3-55-g6feb