diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:28:11 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:28:11 -0300 |
commit | 888f91fa24d7561471acb87ddafc156408dd3617 (patch) | |
tree | 81d17820c81cf8c98bcff12b0ec7373b12e18bd8 /ldebug.c | |
parent | c1db0b2bf1ba9c5e60d77fd70f8de06aab2e0e93 (diff) | |
download | lua-888f91fa24d7561471acb87ddafc156408dd3617.tar.gz lua-888f91fa24d7561471acb87ddafc156408dd3617.tar.bz2 lua-888f91fa24d7561471acb87ddafc156408dd3617.zip |
code check for upvalues
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.64 2001/02/16 17:58:27 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.65 2001/02/20 18:15:33 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -433,7 +433,7 @@ static Instruction luaG_symbexec (lua_State *L, const Proto *pt, | |||
433 | break; | 433 | break; |
434 | } | 434 | } |
435 | case OP_PUSHUPVALUE: { | 435 | case OP_PUSHUPVALUE: { |
436 | /* ?? */ | 436 | check(arg1 < pt->nupvalues); |
437 | break; | 437 | break; |
438 | } | 438 | } |
439 | case OP_GETLOCAL: | 439 | case OP_GETLOCAL: |
@@ -462,7 +462,8 @@ static Instruction luaG_symbexec (lua_State *L, const Proto *pt, | |||
462 | break; | 462 | break; |
463 | } | 463 | } |
464 | case OP_CLOSURE: { | 464 | case OP_CLOSURE: { |
465 | /* ?? */ | 465 | check(arg1 < pt->sizekproto); |
466 | check(arg2 == pt->kproto[arg1]->nupvalues); | ||
466 | pop = arg2; | 467 | pop = arg2; |
467 | break; | 468 | break; |
468 | } | 469 | } |