mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Fix cproj handling of (finite, NaN) arguments (bug 15531).
This commit is contained in:
@@ -24,9 +24,7 @@
|
||||
__complex__ long double
|
||||
__cprojl (__complex__ long double x)
|
||||
{
|
||||
if (isnan (__real__ x) && isnan (__imag__ x))
|
||||
return x;
|
||||
else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
|
||||
if (__isinf_nsl (__real__ x) || __isinf_nsl (__imag__ x))
|
||||
{
|
||||
__complex__ long double res;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user