- Fixed FxPow::Resolve not specifying the ValueType

This commit is contained in:
Magnus Norddahl 2017-09-24 01:15:58 +02:00
parent d7164ba4e1
commit cfc1bfd1e2

View file

@ -3302,6 +3302,7 @@ FxExpression *FxPow::Resolve(FCompileContext& ctx)
right = (new FxFloatCast(right))->Resolve(ctx); right = (new FxFloatCast(right))->Resolve(ctx);
ABORT(right); ABORT(right);
} }
ValueType = TypeFloat64;
if (left->isConstant() && right->isConstant()) if (left->isConstant() && right->isConstant())
{ {
double v1 = static_cast<FxConstant *>(left)->GetValue().GetFloat(); double v1 = static_cast<FxConstant *>(left)->GetValue().GetFloat();