Fix the NOT instruction. Includes test case.

This commit is contained in:
Ian Farmer
2007-07-21 04:08:28 +00:00
parent c0f054549b
commit b4ac032fd7
4 changed files with 36 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ public class CallFrame {
}
case StackState.OP_NOT: {
rkb = GETARG_RKB(i);
this.stack[base + a] = (rkb.luaAsBoolean() ? LBoolean.TRUE
this.stack[base + a] = (!rkb.luaAsBoolean() ? LBoolean.TRUE
: LBoolean.FALSE);
continue;
}