From 9aff171f3bf0125314a29a5ca952470b2d83708e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 11 Dec 2001 20:48:44 -0200 Subject: new type `boolean' --- ldebug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 954c68c0..410bbbbf 100644 --- a/ldebug.c +++ b/ldebug.c @@ -359,6 +359,10 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { if (testOpMode(op, OpModeT)) check(GET_OPCODE(pt->code[pc+1]) == OP_CJMP); switch (op) { + case OP_LOADBOOL: { + check(c == 0 || pc+2 < pt->sizecode); /* check its jump */ + break; + } case OP_LOADNIL: { if (a <= reg && reg <= b) last = pc; /* set registers from `a' to `b' */ @@ -393,10 +397,6 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { pc += b; /* do the jump */ break; } - case OP_NILJMP: { - check(pc+2 < pt->sizecode); /* check its jump */ - break; - } case OP_CALL: { if (b != NO_REG) { checkreg(pt, a+b); -- cgit v1.2.3-55-g6feb