From 98b2b9cf57804cb45afc2e260f63d24d9669aabd Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 8 Oct 2010 15:24:56 +0000 Subject: * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts to __uint32_t to avoid overflows on implicit casts. --- newlib/libm/common/sf_round.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libm/common/sf_round.c') 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 { -- cgit v1.2.3