diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2011-03-02 00:43:15 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2011-03-02 00:43:15 +0300 |
commit | 127c3221cd3d5ebed1869f2e18604f22c8ed45f7 (patch) | |
tree | c9df78bfc7fed983f40b2e92a824db942f21724e | |
parent | ba5f92981d9071c79838017587085a1c0cbce7b3 (diff) |
2011-03-01 Aaron Landwehr <snaphat@gmail.com>
* libm/complex/cproj.c: Fix typo.
* libm/complex/cprojf.c: Ditto.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libm/complex/cproj.c | 2 | ||||
-rw-r--r-- | 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 <snaphat@gmail.com> + + * libm/complex/cproj.c: Fix typo. + * libm/complex/cprojf.c: Ditto. + 2011-02-22 Corinna Vinschen <vinschen@redhat.com> * 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 |