Skip to content

Commit

Permalink
- fixed: FxActionSpecialCall did not resolve float to int casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 1, 2017
1 parent 5342ff5 commit bb6015b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scripting/backend/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8481,6 +8481,12 @@ FxExpression *FxActionSpecialCall::Resolve(FCompileContext& ctx)
if (ArgList[i]->ValueType->GetRegType() == REGT_FLOAT /* lax */)
{
ArgList[i] = new FxIntCast(ArgList[i], ctx.FromDecorate);
ArgList[i] = ArgList[i]->Resolve(ctx);
if (ArgList[i] == nullptr)
{
delete this;
return nullptr;
}
}
else
{
Expand Down

0 comments on commit bb6015b

Please sign in to comment.