Don't crash calling make with NaN or Infinity.
From-SVN: r170644
This commit is contained in:
parent
eba4ad892b
commit
5a34af783a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user