Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext/POSIX/t/math.t: don't assume the sign of NaN
The test in Configure warns: /* Note that whether the sign bit is on or off * for NaN depends on the CPU/FPU, and possibly * can be affected by the build toolchain. but this test assumed that the default NaN was always positive, but this isn't the case with the Sun/Oracle workshop cc, whether on Oracle Linux or on Solaris. copysign() is however well defined for NaN, so we can modify the sign on NaN and test that with signbit(). Fixes Perl#21533
- Loading branch information