From 2598f908ca5317ae743f875ca1351185909ab3a6 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 24 Feb 2005 19:02:35 +0000 Subject: [PATCH] Add (int) cast. --- newlib/libm/common/sf_round.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libm/common/sf_round.c b/newlib/libm/common/sf_round.c index db1cf548f..6c9087db0 100644 --- a/newlib/libm/common/sf_round.c +++ b/newlib/libm/common/sf_round.c @@ -29,7 +29,7 @@ signbit = w & 0x80000000; /* Extract exponent field. */ - exponent_less_127 = ((w & 0x7f800000) >> 23) - 127; + exponent_less_127 = (int)((w & 0x7f800000) >> 23) - 127; if (exponent_less_127 < 23) {