Skip to content

Commit

Permalink
- Fixed FxPow::Resolve not specifying the ValueType
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Sep 23, 2017
1 parent d7164ba commit cfc1bfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripting/backend/codegen.cpp
Expand Up @@ -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<FxConstant *>(left)->GetValue().GetFloat();
Expand Down

0 comments on commit cfc1bfd

Please sign in to comment.