diff --git a/src/ctfeexpr.c b/src/ctfeexpr.c index ed93559c422c..3a797c63ed3c 100644 --- a/src/ctfeexpr.c +++ b/src/ctfeexpr.c @@ -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 {