Fix bytecode processing for OP_SELF and OP_TESTSET

This commit is contained in:
James Roseborough
2009-04-25 00:23:19 +00:00
parent ddf2ed6f71
commit 363ea0dfb1
2 changed files with 3 additions and 3 deletions

View File

@@ -639,7 +639,7 @@ public class LuaState extends Lua {
continue;
}
case LuaState.OP_SELF: {
rkb = GETARG_RKB(k, i);
rkb = stack[base + GETARG_B(i)];
rkc = GETARG_RKC(k, i);
val = this.luaV_gettable(rkb, rkc);
this.stack[base + a] = val;
@@ -705,7 +705,7 @@ public class LuaState extends Lua {
continue;
}
case LuaState.OP_TESTSET: {
rkb = GETARG_RKB(k, i);
rkb = stack[base + GETARG_B(i)];
c = LuaState.GETARG_C(i);
if (rkb.toJavaBoolean() != (c != 0))
ci.pc++;