mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
(NUM2FLOAT): Expand isfinite to !xisinf, as per previous change to numbers.c.
This commit is contained in:
parent
b114eafe80
commit
2c0334eccd
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ NUM2FLOAT (SCM num, unsigned long int pos, const char *s_caller)
|
|||
else if (SCM_BIGP (num))
|
||||
{ /* bignum */
|
||||
FTYPE res = mpz_get_d (SCM_I_BIG_MPZ (num));
|
||||
if (isfinite (res))
|
||||
if (! xisinf (res))
|
||||
return res;
|
||||
else
|
||||
scm_out_of_range (s_caller, num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue