mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 05:43:09 +00:00
98bc4decde
Signed-off-by: Alexey Neyman <stilor@att.net>
36 lines
1003 B
Diff
36 lines
1003 B
Diff
commit e223d1fe72e820d96f43831412ab267a1ace04d0
|
|
Author: steve ellcey-CA Eng-Software <sellcey@sellcey-thinkpad.caveonetworks.com>
|
|
Date: Fri Oct 14 12:53:27 2016 -0700
|
|
|
|
Fix warnings from latest GCC.
|
|
|
|
* sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
|
|
boolean.
|
|
|
|
---
|
|
sysdeps/ieee754/dbl-64/e_pow.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/sysdeps/ieee754/dbl-64/e_pow.c
|
|
+++ b/sysdeps/ieee754/dbl-64/e_pow.c
|
|
@@ -441,15 +441,15 @@
|
|
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;
|
|
}
|