summaryrefslogtreecommitdiffstats
path: root/newlib/libm/common/sf_round.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-10-08 15:24:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-10-08 15:24:56 +0000
commit98b2b9cf57804cb45afc2e260f63d24d9669aabd (patch)
treec84317a9e36c442044376b3624f988357622f09d /newlib/libm/common/sf_round.c
parenta26a5332da3a7aa3b42ff2fcef89ff847354f05c (diff)
downloadcygnal-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_round.c')
-rw-r--r--newlib/libm/common/sf_round.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/common/sf_round.c b/newlib/libm/common/sf_round.c
index 6c9087db0..1bf60890c 100644
--- a/newlib/libm/common/sf_round.c
+++ b/newlib/libm/common/sf_round.c
@@ -38,7 +38,7 @@
w &= 0x80000000;
if (exponent_less_127 == -1)
/* Result is +1.0 or -1.0. */
- w |= (127 << 23);
+ w |= ((__uint32_t)127 << 23);
}
else
{