mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-15 15:11:32 +00:00
- Fixed: FxCompareEq::Emit() needs to allocate the output register before freeing the inputs.
SVN r3906 (scripting)
This commit is contained in:
parent
79228e4331
commit
5c6bf0aeb4
1 changed files with 2 additions and 1 deletions
|
@ -1719,6 +1719,8 @@ ExpEmit FxCompareEq::Emit(VMFunctionBuilder *build)
|
|||
}
|
||||
assert(!op1.Konst);
|
||||
|
||||
ExpEmit to(build, op1.RegType);
|
||||
|
||||
instr = op1.RegType == REGT_INT ? OP_EQ_R :
|
||||
op1.RegType == REGT_FLOAT ? OP_EQF_R :
|
||||
OP_EQA_R;
|
||||
|
@ -1731,7 +1733,6 @@ ExpEmit FxCompareEq::Emit(VMFunctionBuilder *build)
|
|||
{
|
||||
instr += 1;
|
||||
}
|
||||
ExpEmit to(build, op1.RegType);
|
||||
|
||||
// See FxUnaryNotBoolean for comments, since it's the same thing.
|
||||
build->Emit(OP_LI, to.RegNum, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue