- removed incorrect assert.

This may fail if a narrow data type is negated.
This commit is contained in:
Christoph Oelckers 2022-06-23 10:43:43 +02:00
parent 124d71a7be
commit 2d10ad9d2d

View file

@ -1850,7 +1850,7 @@ FxExpression *FxMinusSign::Resolve(FCompileContext& ctx)
ExpEmit FxMinusSign::Emit(VMFunctionBuilder *build) ExpEmit FxMinusSign::Emit(VMFunctionBuilder *build)
{ {
assert(ValueType == Operand->ValueType); //assert(ValueType == Operand->ValueType);
ExpEmit from = Operand->Emit(build); ExpEmit from = Operand->Emit(build);
ExpEmit to; ExpEmit to;
assert(from.Konst == 0); assert(from.Konst == 0);