From 127c3221cd3d5ebed1869f2e18604f22c8ed45f7 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 1 Mar 2011 21:43:15 +0000 Subject: [PATCH] 2011-03-01 Aaron Landwehr * libm/complex/cproj.c: Fix typo. * libm/complex/cprojf.c: Ditto. --- newlib/ChangeLog | 5 +++++ newlib/libm/complex/cproj.c | 2 +- newlib/libm/complex/cprojf.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4b48ebf06..43811b569 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2011-03-01 Aaron Landwehr + + * libm/complex/cproj.c: Fix typo. + * libm/complex/cprojf.c: Ditto. + 2011-02-22 Corinna Vinschen * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition. Avoid SEGV 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