summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/libm/common/s_round.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/common/s_round.c b/newlib/libm/common/s_round.c
index 047574a84..e3a91d6c2 100644
--- a/newlib/libm/common/s_round.c
+++ b/newlib/libm/common/s_round.c
@@ -68,7 +68,7 @@ SEEALSO
msw &= 0x80000000;
if (exponent_less_1023 == -1)
/* Result is +1.0 or -1.0. */
- msw |= (1023 << 20);
+ msw |= ((__int32_t)1023 << 20);
lsw = 0;
}
else