From cfc1bfd1e203b51605154ff336fa9c14fe55accd Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 24 Sep 2017 01:15:58 +0200 Subject: [PATCH] - Fixed FxPow::Resolve not specifying the ValueType --- src/scripting/backend/codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index bd8fcef9c..2af0f9ae7 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -3302,6 +3302,7 @@ FxExpression *FxPow::Resolve(FCompileContext& ctx) right = (new FxFloatCast(right))->Resolve(ctx); ABORT(right); } + ValueType = TypeFloat64; if (left->isConstant() && right->isConstant()) { double v1 = static_cast(left)->GetValue().GetFloat();