From cc0748930ba913902f812f99c6ff426df255a1e0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 16 Apr 2009 15:39:46 +0000 Subject: Add new binutils target: moxie --- newlib/libm/common/s_lrint.c | 2 +- newlib/libm/common/sf_lrint.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libm') diff --git a/newlib/libm/common/s_lrint.c b/newlib/libm/common/s_lrint.c index 5c15dd5e7..af94af709 100644 --- a/newlib/libm/common/s_lrint.c +++ b/newlib/libm/common/s_lrint.c @@ -110,7 +110,7 @@ TWO52[2]={ GET_HIGH_WORD(i0, t); /* Detect the all-zeros representation of plus and minus zero, which fails the calculation below. */ - if ((i0 & ~(1 << 31)) == 0) + if ((i0 & ~(1L << 31)) == 0) return 0; j0 = ((i0 & 0x7ff00000) >> 20) - 1023; i0 &= 0x000fffff; diff --git a/newlib/libm/common/sf_lrint.c b/newlib/libm/common/sf_lrint.c index 045a62f03..3c58c5d10 100644 --- a/newlib/libm/common/sf_lrint.c +++ b/newlib/libm/common/sf_lrint.c @@ -71,7 +71,7 @@ TWO23[2]={ GET_FLOAT_WORD (i0, t); /* Detect the all-zeros representation of plus and minus zero, which fails the calculation below. */ - if ((i0 & ~(1 << 31)) == 0) + if ((i0 & ~(1L << 31)) == 0) return 0; j0 = ((i0 >> 23) & 0xff) - 0x7f; i0 &= 0x7fffff; -- cgit v1.2.3