Avoid unneeded truncation to "int"

* libm/math/e_sqrt.c (__ieee754_sqrt): Don't truncate constant to
"int".
This commit is contained in:
DJ Delorie 2015-05-26 22:10:26 -04:00 committed by Corinna Vinschen
parent bb5cb3afb5
commit 4f3cc70cb6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-05-26 DJ Delorie <dj@redhat.com>
* libm/math/e_sqrt.c (__ieee754_sqrt): Don't truncate constant to
"int".
2015-05-13 Nick Clifton <nickc@redhat.com>
* libm/common/s_signbit.c (__signbitf): Fix for 16-bit targets.

View File

@ -99,7 +99,7 @@ static double one = 1.0, tiny=1.0e-300;
#endif
{
double z;
__int32_t sign = (int)0x80000000;
__int32_t sign = 0x80000000;
__uint32_t r,t1,s1,ix1,q1;
__int32_t ix0,s0,q,m,t,i;