Explicit nan type

This commit is contained in:
Bruce Hill 2025-03-28 14:29:17 -04:00
parent 9638d3b445
commit 9f0d8d64db

View File

@ -194,7 +194,7 @@ static PUREFUNC INLINE double type_min_magnitude(type_t *t)
}
}
case NumType: return -1./0.;
default: return NAN;
default: return (double)NAN;
}
}
@ -214,7 +214,7 @@ static PUREFUNC INLINE double type_max_magnitude(type_t *t)
}
}
case NumType: return 1./0.;
default: return NAN;
default: return (double)NAN;
}
}