diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2011-03-01 21:43:15 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2011-03-01 21:43:15 +0000 |
commit | 127c3221cd3d5ebed1869f2e18604f22c8ed45f7 (patch) | |
tree | c9df78bfc7fed983f40b2e92a824db942f21724e /newlib/libm | |
parent | ba5f92981d9071c79838017587085a1c0cbce7b3 (diff) | |
download | newlib-127c3221cd3d5ebed1869f2e18604f22c8ed45f7.zip newlib-127c3221cd3d5ebed1869f2e18604f22c8ed45f7.tar.gz newlib-127c3221cd3d5ebed1869f2e18604f22c8ed45f7.tar.bz2 |
2011-03-01 Aaron Landwehr <snaphat@gmail.com>
* libm/complex/cproj.c: Fix typo.
* libm/complex/cprojf.c: Ditto.
Diffstat (limited to 'newlib/libm')
-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 42fc0f1..32a757f 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 3e08f0c..1310170 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 |