From 6bfef60e77f5eec1057470010b4179ee6f830fe6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Mar 2005 12:51:08 -0300 Subject: bug: rawset/rawget do not ignore extra arguments --- lbaselib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 3936c5c7..442ca621 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.168 2005/02/23 17:30:22 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.169 2005/02/28 17:24:41 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -164,6 +164,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; } @@ -172,6 +173,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; } -- cgit v1.2.3-55-g6feb