aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 3936c5c7..442ca621 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.168 2005/02/23 17:30:22 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.169 2005/02/28 17:24:41 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*/
@@ -164,6 +164,7 @@ static int luaB_rawequal (lua_State *L) {
164static int luaB_rawget (lua_State *L) { 164static int luaB_rawget (lua_State *L) {
165 luaL_checktype(L, 1, LUA_TTABLE); 165 luaL_checktype(L, 1, LUA_TTABLE);
166 luaL_checkany(L, 2); 166 luaL_checkany(L, 2);
167 lua_settop(L, 2);
167 lua_rawget(L, 1); 168 lua_rawget(L, 1);
168 return 1; 169 return 1;
169} 170}
@@ -172,6 +173,7 @@ static int luaB_rawset (lua_State *L) {
172 luaL_checktype(L, 1, LUA_TTABLE); 173 luaL_checktype(L, 1, LUA_TTABLE);
173 luaL_checkany(L, 2); 174 luaL_checkany(L, 2);
174 luaL_checkany(L, 3); 175 luaL_checkany(L, 3);
176 lua_settop(L, 3);
175 lua_rawset(L, 1); 177 lua_rawset(L, 1);
176 return 1; 178 return 1;
177} 179}