From 888f91fa24d7561471acb87ddafc156408dd3617 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 20 Feb 2001 15:28:11 -0300 Subject: code check for upvalues --- ldebug.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index f99dfd75..c9b045bc 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.64 2001/02/16 17:58:27 roberto Exp roberto $ +** $Id: ldebug.c,v 1.65 2001/02/20 18:15:33 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -433,7 +433,7 @@ static Instruction luaG_symbexec (lua_State *L, const Proto *pt, break; } case OP_PUSHUPVALUE: { - /* ?? */ + check(arg1 < pt->nupvalues); break; } case OP_GETLOCAL: @@ -462,7 +462,8 @@ static Instruction luaG_symbexec (lua_State *L, const Proto *pt, break; } case OP_CLOSURE: { - /* ?? */ + check(arg1 < pt->sizekproto); + check(arg2 == pt->kproto[arg1]->nupvalues); pop = arg2; break; } -- cgit v1.2.3-55-g6feb