diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-10-08 15:24:56 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-10-08 15:24:56 +0000 |
commit | 98b2b9cf57804cb45afc2e260f63d24d9669aabd (patch) | |
tree | c84317a9e36c442044376b3624f988357622f09d /newlib/libm/common/sf_llrint.c | |
parent | a26a5332da3a7aa3b42ff2fcef89ff847354f05c (diff) | |
download | cygnal-98b2b9cf57804cb45afc2e260f63d24d9669aabd.tar.gz cygnal-98b2b9cf57804cb45afc2e260f63d24d9669aabd.tar.bz2 cygnal-98b2b9cf57804cb45afc2e260f63d24d9669aabd.zip |
* libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
to __uint32_t to avoid overflows on implicit casts.
Diffstat (limited to 'newlib/libm/common/sf_llrint.c')
-rw-r--r-- | newlib/libm/common/sf_llrint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/common/sf_llrint.c b/newlib/libm/common/sf_llrint.c index 5cc73c664..7558e89ac 100644 --- a/newlib/libm/common/sf_llrint.c +++ b/newlib/libm/common/sf_llrint.c @@ -71,7 +71,7 @@ TWO23[2]={ GET_FLOAT_WORD (i0, t); /* Detect the all-zeros representation of plus and minus zero, which fails the calculation below. */ - if ((i0 & ~(1 << 31)) == 0) + if ((i0 & ~((__uint32_t)1 << 31)) == 0) return 0; j0 = ((i0 >> 23) & 0xff) - 0x7f; i0 &= 0x7fffff; |