diff options
author | Jon Beniston <jon@beniston.com> | 2018-06-20 20:47:24 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-06-21 09:31:13 +0200 |
commit | b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0 (patch) | |
tree | 44973febd327d5cdbf1938f280ca9a2772b2c77c | |
parent | fca80a9d1b3fa6620cdaccec6b726eef1a6530a1 (diff) | |
download | cygnal-b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0.tar.gz cygnal-b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0.tar.bz2 cygnal-b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0.zip |
libm/common/s_round.c (round): Add cast for 16-bit CPUs
-rw-r--r-- | newlib/libm/common/s_round.c | 2 |
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 |