Fix warnings from latest GCC.

* sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
	boolean.
This commit is contained in:
steve ellcey-CA Eng-Software 2016-10-14 12:53:27 -07:00
parent e886c36771
commit e223d1fe72
2 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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;
}