diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.135 2017/11/02 11:28:56 roberto Exp $ | 2 | ** $Id: ldebug.c,v 2.140 2017/11/07 13:25:26 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 | */ |
@@ -442,7 +442,7 @@ static int findsetreg (Proto *p, int lastpc, int reg) { | |||
442 | break; | 442 | break; |
443 | } | 443 | } |
444 | case OP_JMP: { /* doesn't change registers, but changes 'jmptarget' */ | 444 | case OP_JMP: { /* doesn't change registers, but changes 'jmptarget' */ |
445 | int b = GETARG_sBx(i); | 445 | int b = GETARG_sJ(i); |
446 | int dest = pc + 1 + b; | 446 | int dest = pc + 1 + b; |
447 | /* jump does not skip 'lastpc' and is larger than current one? */ | 447 | /* jump does not skip 'lastpc' and is larger than current one? */ |
448 | if (dest <= lastpc && dest > jmptarget) | 448 | if (dest <= lastpc && dest > jmptarget) |