diff options
Diffstat (limited to 'newlib/libm/complex')
-rw-r--r-- | newlib/libm/complex/cproj.c | 2 | ||||
-rw-r--r-- | newlib/libm/complex/cprojf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/complex/cproj.c b/newlib/libm/complex/cproj.c index 42fc0f1e8..32a757f92 100644 --- a/newlib/libm/complex/cproj.c +++ b/newlib/libm/complex/cproj.c @@ -93,7 +93,7 @@ cproj(double complex z) { double_complex w = { .z = z }; - if (isinf(creal(z) || isinf(cimag(z)))) { + if (isinf(creal(z)) || isinf(cimag(z))) { #ifdef __INFINITY REAL_PART(w) = __INFINITY; #else diff --git a/newlib/libm/complex/cprojf.c b/newlib/libm/complex/cprojf.c index 3e08f0c30..1310170b6 100644 --- a/newlib/libm/complex/cprojf.c +++ b/newlib/libm/complex/cprojf.c @@ -55,7 +55,7 @@ cprojf(float complex z) { float_complex w = { .z = z }; - if (isinf(crealf(z) || isinf(cimagf(z)))) { + if (isinf(crealf(z)) || isinf(cimagf(z))) { #ifdef __INFINITY REAL_PART(w) = __INFINITY; #else |