summaryrefslogtreecommitdiff
path: root/src/lib/lbaselib.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2006-06-19 12:00:00 +0000
committerrepogen <>2006-06-19 12:00:00 +0000
commit0de9166148af8217fd15c8540755753c0256581b (patch)
tree0d5d72e0a7b6b2c91d43dec1a49e8f76e417e6c7 /src/lib/lbaselib.c
parente7731a8fb8a317aa5c444ef073bfad82fa5baa54 (diff)
downloadlua-github-5.0.x.tar.gz
Lua 5.0.35.0.35.0.x
Diffstat (limited to 'src/lib/lbaselib.c')
-rw-r--r--src/lib/lbaselib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/lbaselib.c b/src/lib/lbaselib.c
index b6a4baed..fb26a54a 100644
--- a/src/lib/lbaselib.c
+++ b/src/lib/lbaselib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lbaselib.c,v 1.130b 2003/04/03 13:35:34 roberto Exp $
+** $Id: lbaselib.c,v 1.130c 2003/04/03 13:35:34 roberto Exp $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -173,6 +173,7 @@ static int luaB_rawequal (lua_State *L) {
static int luaB_rawget (lua_State *L) {
luaL_checktype(L, 1, LUA_TTABLE);
luaL_checkany(L, 2);
+ lua_settop(L, 2);
lua_rawget(L, 1);
return 1;
}
@@ -181,6 +182,7 @@ static int luaB_rawset (lua_State *L) {
luaL_checktype(L, 1, LUA_TTABLE);
luaL_checkany(L, 2);
luaL_checkany(L, 3);
+ lua_settop(L, 3);
lua_rawset(L, 1);
return 1;
}