Use C99-defined macros to classify a floating-point number

This commit is contained in:
Nobuyoshi Nakada 2021-08-27 10:52:02 +09:00
parent 3711467362
commit 04be8e84db
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2021-08-27 15:41:07 +09:00
15 changed files with 11 additions and 205 deletions

View file

@ -1348,7 +1348,7 @@ static inline double
float_value(VALUE v)
{
double x = RFLOAT_VALUE(v);
if (isinf(x) || isnan(x)) {
if (!isfinite(x)) {
domain_error();
}
return x;