]> sourceware.org Git - newlib-cygwin.git/commitdiff
Avoid unneeded truncation to "int" newlib-snapshot-20150526
authorDJ Delorie <dj@redhat.com>
Wed, 27 May 2015 02:10:26 +0000 (22:10 -0400)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 27 May 2015 11:30:20 +0000 (13:30 +0200)
* libm/math/e_sqrt.c (__ieee754_sqrt): Don't truncate constant to
"int".

newlib/ChangeLog
newlib/libm/math/e_sqrt.c

index d36decdd18223c8f31972a696aa6dde11f7b14e7..a70fefea9988b8d61220583c2906114eadc1d3ac 100644 (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.
index 460125a8fdab859c0fcfb859f569ff899ee63b57..78fc524172822851f46658e50a4d7957a8962d2f 100644 (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;
 
This page took 0.046468 seconds and 5 git commands to generate.