diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-11 08:46:24 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-11 08:46:24 -0200 |
| commit | 7a40cdbda0a171da223094208dd3c6e3eca13922 (patch) | |
| tree | c95840411ac26e11b0683d4a5fc88402c1d0a70a /ldebug.c | |
| parent | 3cdeacbbfba9308dd2dcc995a9bcc510bfcead31 (diff) | |
| download | lua-7a40cdbda0a171da223094208dd3c6e3eca13922.tar.gz lua-7a40cdbda0a171da223094208dd3c6e3eca13922.tar.bz2 lua-7a40cdbda0a171da223094208dd3c6e3eca13922.zip | |
different variables for number of upvalues and size of upvalue array
(makes code clearer)
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]); |
