diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.105 2002/03/25 17:47:14 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.106 2002/04/04 17:21: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 | */ |
@@ -347,8 +347,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
347 | break; | 347 | break; |
348 | } | 348 | } |
349 | case OP_TFORLOOP: { | 349 | case OP_TFORLOOP: { |
350 | checkreg(pt, a+c); | 350 | checkreg(pt, a+2+c); |
351 | checkreg(pt, a+2); /* at least 2 for table generators */ | ||
352 | check(pc+2 < pt->sizecode); /* check skip */ | 351 | check(pc+2 < pt->sizecode); /* check skip */ |
353 | break; | 352 | break; |
354 | } | 353 | } |