diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-06 15:15:35 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-06 15:15:35 -0200 |
| commit | 9bd3fc10391ea6868c324d9d09a0fca4ef453015 (patch) | |
| tree | 087c1a5a594219429e2c51c6b92ef2441e63af88 | |
| parent | cc4a22ebe28c5d09566facde05840ddf42778eac (diff) | |
| download | lua-9bd3fc10391ea6868c324d9d09a0fca4ef453015.tar.gz lua-9bd3fc10391ea6868c324d9d09a0fca4ef453015.tar.bz2 lua-9bd3fc10391ea6868c324d9d09a0fca4ef453015.zip | |
TFORLOOP makes a call that affects all values above it on the stack
| -rw-r--r-- | ldebug.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldebug.c,v 1.140 2002/11/26 08:59:48 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.141 2002/12/04 17:38:31 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 | */ |
| @@ -365,6 +365,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
| 365 | } | 365 | } |
| 366 | case OP_TFORLOOP: | 366 | case OP_TFORLOOP: |
| 367 | checkreg(pt, a+2+c); | 367 | checkreg(pt, a+2+c); |
| 368 | if (reg >= a) last = pc; /* affect all registers above base */ | ||
| 368 | /* go through */ | 369 | /* go through */ |
| 369 | case OP_FORLOOP: | 370 | case OP_FORLOOP: |
| 370 | checkreg(pt, a+2); | 371 | checkreg(pt, a+2); |
