mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-20 06:00:44 +00:00
- fixed: FxUnaryNotBoolean is not necessarily TypeBoolean, it can be altered by a type cast so the asserts had to be adjusted to cover that case.
This commit is contained in:
parent
a63c749f04
commit
d4d6b739e0
1 changed files with 2 additions and 2 deletions
|
@ -1847,8 +1847,8 @@ FxExpression *FxUnaryNotBoolean::Resolve(FCompileContext& ctx)
|
||||||
|
|
||||||
ExpEmit FxUnaryNotBoolean::Emit(VMFunctionBuilder *build)
|
ExpEmit FxUnaryNotBoolean::Emit(VMFunctionBuilder *build)
|
||||||
{
|
{
|
||||||
assert(Operand->ValueType == ValueType);
|
assert(Operand->ValueType == TypeBool);
|
||||||
assert(ValueType == TypeBool);
|
assert(ValueType == TypeBool || IsInteger()); // this may have been changed by an int cast.
|
||||||
ExpEmit from = Operand->Emit(build);
|
ExpEmit from = Operand->Emit(build);
|
||||||
assert(!from.Konst);
|
assert(!from.Konst);
|
||||||
// boolean not is the same as XOR-ing the lowest bit
|
// boolean not is the same as XOR-ing the lowest bit
|
||||||
|
|
Loading…
Reference in a new issue