Fix a bug in how comparison instructions are handled: the 'a' intruction field

was ignored.  Includes new test case.
This commit is contained in:
Ian Farmer
2007-07-15 20:33:20 +00:00
parent ba3da1ca2c
commit c65dec54fb
4 changed files with 17 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ public class CallFrame {
rkb = GETARG_RKB(i);
rkc = GETARG_RKC(i);
boolean test = rkc.luaBinCmpUnknown(o, rkb);
if (test)
if (test == (a == 0))
pc++;
continue;
}