mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- fixed incorrect code generation for '||' operator (at least I hope it's fixed now.)
This commit is contained in:
parent
5b74d417fa
commit
2a89a9f1d8
1 changed files with 1 additions and 1 deletions
|
@ -1697,7 +1697,7 @@ ExpEmit FxBinaryLogical::Emit(VMFunctionBuilder *build)
|
|||
else
|
||||
{
|
||||
assert(Operator == TK_OrOr);
|
||||
build->Emit(OP_EQ_K, 0, op1.RegNum, zero);
|
||||
build->Emit(OP_EQ_K, 1, op1.RegNum, zero);
|
||||
// If op1 is not 0, skip evaluation of op2.
|
||||
size_t patchspot = build->Emit(OP_JMP, 0, 0, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue