diff options
| -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); |
