- fixed: FxActionSpecialCall did not resolve float to int casts.

This commit is contained in:
Christoph Oelckers 2017-05-01 22:44:58 +02:00
parent 79ef7989fc
commit aac6e65842

View file

@ -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
{