Commit 5a34af78 by Ian Lance Taylor

Don't crash calling make with NaN or Infinity.

From-SVN: r170644
parent eba4ad89
......@@ -769,7 +769,7 @@ Type::check_int_value(Expression* e, const char* errmsg,
mpfr_init(fval);
Type* dummy;
if (e->float_constant_value(fval, &dummy))
if (e->float_constant_value(fval, &dummy) && mpfr_integer_p(fval))
{
mpz_t ival;
mpz_init(ival);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment