diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -359,6 +359,10 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
359 | if (testOpMode(op, OpModeT)) | 359 | if (testOpMode(op, OpModeT)) |
360 | check(GET_OPCODE(pt->code[pc+1]) == OP_CJMP); | 360 | check(GET_OPCODE(pt->code[pc+1]) == OP_CJMP); |
361 | switch (op) { | 361 | switch (op) { |
362 | case OP_LOADBOOL: { | ||
363 | check(c == 0 || pc+2 < pt->sizecode); /* check its jump */ | ||
364 | break; | ||
365 | } | ||
362 | case OP_LOADNIL: { | 366 | case OP_LOADNIL: { |
363 | if (a <= reg && reg <= b) | 367 | if (a <= reg && reg <= b) |
364 | last = pc; /* set registers from `a' to `b' */ | 368 | last = pc; /* set registers from `a' to `b' */ |
@@ -393,10 +397,6 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
393 | pc += b; /* do the jump */ | 397 | pc += b; /* do the jump */ |
394 | break; | 398 | break; |
395 | } | 399 | } |
396 | case OP_NILJMP: { | ||
397 | check(pc+2 < pt->sizecode); /* check its jump */ | ||
398 | break; | ||
399 | } | ||
400 | case OP_CALL: { | 400 | case OP_CALL: { |
401 | if (b != NO_REG) { | 401 | if (b != NO_REG) { |
402 | checkreg(pt, a+b); | 402 | checkreg(pt, a+b); |