Oops. Had FxCastStateToBool backwards.

This commit is contained in:
Randy Heit 2016-02-18 22:53:18 -06:00
parent a399f40e5f
commit cb0fd5967f

View file

@ -565,7 +565,7 @@ ExpEmit FxCastStateToBool::Emit(VMFunctionBuilder *build)
// If from is NULL, produce 0. Otherwise, produce 1.
build->Emit(OP_LI, to.RegNum, 0);
build->Emit(OP_EQA_K, 0, from.RegNum, build->GetConstantAddress(NULL, ATAG_GENERIC));
build->Emit(OP_EQA_K, 1, from.RegNum, build->GetConstantAddress(NULL, ATAG_GENERIC));
build->Emit(OP_JMP, 1);
build->Emit(OP_LI, to.RegNum, 1);
return to;