diff options
author | DJ Delorie <dj@redhat.com> | 2015-05-26 22:10:26 -0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-05-27 13:30:20 +0200 |
commit | 4f3cc70cb6c9b7760d8d13e7661c4d0105006f91 (patch) | |
tree | 3fed356ba58b598a5fcd75e8ba6863db8166b6b0 /newlib | |
parent | bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b (diff) | |
download | newlib-4f3cc70cb6c9b7760d8d13e7661c4d0105006f91.zip newlib-4f3cc70cb6c9b7760d8d13e7661c4d0105006f91.tar.gz newlib-4f3cc70cb6c9b7760d8d13e7661c4d0105006f91.tar.bz2 |
Avoid unneeded truncation to "int"newlib-snapshot-20150526
* libm/math/e_sqrt.c (__ieee754_sqrt): Don't truncate constant to
"int".
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libm/math/e_sqrt.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index d36decd..a70fefe 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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. diff --git a/newlib/libm/math/e_sqrt.c b/newlib/libm/math/e_sqrt.c index 460125a..78fc524 100644 --- a/newlib/libm/math/e_sqrt.c +++ b/newlib/libm/math/e_sqrt.c @@ -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; |