From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95767 invoked by alias); 21 Jun 2018 07:35:23 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 95296 invoked by uid 9078); 21 Jun 2018 07:35:22 -0000 Date: Thu, 21 Jun 2018 07:35:00 -0000 Message-ID: <20180621073522.95292.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libm/common/s_round.c (round): Add cast for 16-bit CPUs X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Beniston X-Git-Refname: refs/heads/master X-Git-Oldrev: fca80a9d1b3fa6620cdaccec6b726eef1a6530a1 X-Git-Newrev: b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0 X-SW-Source: 2018-q2/txt/msg00009.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0 commit b7d9d27b0e168fc43938d1fe68c3467f65dcc4c0 Author: Jon Beniston 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