Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-04-16 19:39:46 +0400
committerNick Clifton <nickc@redhat.com>2009-04-16 19:39:46 +0400
commitcc0748930ba913902f812f99c6ff426df255a1e0 (patch)
treef8bdbed59e5784e745166ed776ca37eeaf3e2766 /newlib/libm
parent03897d8dda6706148fb7aae9e86730d4b5840e22 (diff)
Add new binutils target: moxie
Diffstat (limited to 'newlib/libm')
-rw-r--r--newlib/libm/common/s_lrint.c2
-rw-r--r--newlib/libm/common/sf_lrint.c2
2 files changed, 2 insertions, 2 deletions
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;