diff options
author | steve ellcey-CA Eng-Software <sellcey@sellcey-thinkpad.caveonetworks.com> | 2016-10-14 12:53:27 -0700 |
---|---|---|
committer | steve ellcey-CA Eng-Software <sellcey@sellcey-thinkpad.caveonetworks.com> | 2016-10-14 12:53:27 -0700 |
commit | e223d1fe72e820d96f43831412ab267a1ace04d0 (patch) | |
tree | 2e2c6765b86e1b82670de11172e4722fa183f0b0 | |
parent | e886c36771c1a941cdfc5c4df4dc85b3f8f6d4ef (diff) | |
download | glibc-e223d1fe72e820d96f43831412ab267a1ace04d0.tar.gz glibc-e223d1fe72e820d96f43831412ab267a1ace04d0.tar.xz glibc-e223d1fe72e820d96f43831412ab267a1ace04d0.zip |
Fix warnings from latest GCC.
* sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly boolean.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_pow.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index b3332bcb40..9e50bf4189 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-10-14 Steve Ellcey <sellcey@caviumnetworks.com> + + * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly + boolean. + 2016-10-13 Joseph Myers <joseph@codesourcery.com> * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c index 663fa392c2..bd758b5979 100644 --- a/sysdeps/ieee754/dbl-64/e_pow.c +++ b/sysdeps/ieee754/dbl-64/e_pow.c @@ -466,15 +466,15 @@ checkint (double x) return (n & 1) ? -1 : 1; /* odd or even */ if (k > 20) { - if (n << (k - 20)) + if (n << (k - 20) != 0) return 0; /* if not integer */ - return (n << (k - 21)) ? -1 : 1; + return (n << (k - 21) != 0) ? -1 : 1; } if (n) return 0; /*if not integer */ if (k == 20) return (m & 1) ? -1 : 1; - if (m << (k + 12)) + if (m << (k + 12) != 0) return 0; - return (m << (k + 11)) ? -1 : 1; + return (m << (k + 11) != 0) ? -1 : 1; } |