public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] libm/common/s_round.c (round): Add cast for 16-bit CPUs
@ 2018-06-21  7:35 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-06-21  7:35 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0

commit b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0
Author: Jon Beniston <jon@beniston.com>
Date:   Wed Jun 20 20:47:24 2018 +0100

    libm/common/s_round.c (round): Add cast for 16-bit CPUs

Diff:
---
 newlib/libm/common/s_round.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libm/common/s_round.c b/newlib/libm/common/s_round.c
index 047574a..e3a91d6 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-21  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21  7:35 [newlib-cygwin] libm/common/s_round.c (round): Add cast for 16-bit CPUs Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).