Skip to content

Commit

Permalink
Merge pull request #2213 from yebblies/floatint
Browse files Browse the repository at this point in the history
[DDMD] Make implicit cast from long double to integer explicit
  • Loading branch information
AndrejMitrovic committed Jun 19, 2013
2 parents 77e33a6 + 8199020 commit f4a2748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctfeexpr.c
Expand Up @@ -853,7 +853,7 @@ Expression *paintFloatInt(Expression *fromVal, Type *to)
if (to->isintegral())
{
u.f = fromVal->toReal();
return new IntegerExp(fromVal->loc, ldouble(u.x), to);
return new IntegerExp(fromVal->loc, (dinteger_t)ldouble(u.x), to);
}
else
{
Expand Down

0 comments on commit f4a2748

Please sign in to comment.