aboutsummaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-06 11:08:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-06 11:08:08 -0300
commit3a9516ffc8de0d33051f83dc786dba615d6bac49 (patch)
tree9608796ca5abb4a724d70d99cb34dd818eb95662 /table.c
parent42fa305649199712aad1c96beadb944b01277e3f (diff)
downloadlua-3a9516ffc8de0d33051f83dc786dba615d6bac49.tar.gz
lua-3a9516ffc8de0d33051f83dc786dba615d6bac49.tar.bz2
lua-3a9516ffc8de0d33051f83dc786dba615d6bac49.zip
luaL check functions do not need the function name (it can be
accessed via luadebug interface).
Diffstat (limited to 'table.c')
-rw-r--r--table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/table.c b/table.c
index 2bef4d0f..a1ab1178 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
3** Module to control static tables 3** Module to control static tables
4*/ 4*/
5 5
6char *rcs_table="$Id: table.c,v 2.65 1997/03/31 14:17:09 roberto Exp roberto $"; 6char *rcs_table="$Id: table.c,v 2.66 1997/04/04 15:35:37 roberto Exp roberto $";
7 7
8#include "luamem.h" 8#include "luamem.h"
9#include "auxlib.h" 9#include "auxlib.h"
@@ -208,7 +208,7 @@ void luaI_nextvar (void)
208 if (lua_isnil(lua_getparam(1))) 208 if (lua_isnil(lua_getparam(1)))
209 next = 0; 209 next = 0;
210 else 210 else
211 next = luaI_findsymbolbyname(luaL_check_string(1, "nextvar")) + 1; 211 next = luaI_findsymbolbyname(luaL_check_string(1)) + 1;
212 while (next < lua_ntable && s_ttype(next) == LUA_T_NIL) 212 while (next < lua_ntable && s_ttype(next) == LUA_T_NIL)
213 next++; 213 next++;
214 if (next < lua_ntable) { 214 if (next < lua_ntable) {