mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 05:40:44 +00:00
- fixed code generation for ternary operator with vector result types
https://forum.zdoom.org/viewtopic.php?t=64831
This commit is contained in:
parent
5745df4d7e
commit
3fff8e1c3a
1 changed files with 1 additions and 1 deletions
|
@ -4835,7 +4835,7 @@ ExpEmit FxConditional::Emit(VMFunctionBuilder *build)
|
||||||
// If this is a local variable we need another register for the result.
|
// If this is a local variable we need another register for the result.
|
||||||
if (trueop.Fixed)
|
if (trueop.Fixed)
|
||||||
{
|
{
|
||||||
out = ExpEmit(build, trueop.RegType);
|
out = ExpEmit(build, trueop.RegType, trueop.RegCount);
|
||||||
build->Emit(truex->ValueType->GetMoveOp(), out.RegNum, trueop.RegNum, 0);
|
build->Emit(truex->ValueType->GetMoveOp(), out.RegNum, trueop.RegNum, 0);
|
||||||
}
|
}
|
||||||
else out = trueop;
|
else out = trueop;
|
||||||
|
|
Loading…
Reference in a new issue