diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.142 2002/12/06 17:15:35 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.143 2002/12/11 12:34:22 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 | */ |
@@ -345,7 +345,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
345 | } | 345 | } |
346 | case OP_GETUPVAL: | 346 | case OP_GETUPVAL: |
347 | case OP_SETUPVAL: { | 347 | case OP_SETUPVAL: { |
348 | check(b < pt->nupvalues); | 348 | check(b < pt->nups); |
349 | break; | 349 | break; |
350 | } | 350 | } |
351 | case OP_GETGLOBAL: | 351 | case OP_GETGLOBAL: |
@@ -404,7 +404,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
404 | case OP_CLOSURE: { | 404 | case OP_CLOSURE: { |
405 | int nup; | 405 | int nup; |
406 | check(b < pt->sizep); | 406 | check(b < pt->sizep); |
407 | nup = pt->p[b]->nupvalues; | 407 | nup = pt->p[b]->nups; |
408 | check(pc + nup < pt->sizecode); | 408 | check(pc + nup < pt->sizecode); |
409 | for (; nup>0; nup--) { | 409 | for (; nup>0; nup--) { |
410 | OpCode op1 = GET_OPCODE(pt->code[pc+nup]); | 410 | OpCode op1 = GET_OPCODE(pt->code[pc+nup]); |