From: jjohnstn Date: Fri, 24 Aug 2007 20:49:59 +0000 (+0000) Subject: 2007-08-24 Jeff Johnston X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=de8b7fd144d39625dadfc3a2b5cdb2e45847f1ab;p=pf3gnuchains%2Fpf3gnuchains3x.git 2007-08-24 Jeff Johnston * libm/common/sf_lround.c (lroundf): Cast sizeof calculation to int before comparing it to a signed int value. --- diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 575f13f6eb..9e16f9a140 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2007-08-24 Jeff Johnston + + * libm/common/sf_lround.c (lroundf): Cast sizeof calculation + to int before comparing it to a signed int value. + 2007-08-24 Hans-Peter Nilsson * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED) diff --git a/newlib/libm/common/sf_lround.c b/newlib/libm/common/sf_lround.c index d715423e41..eee420b937 100644 --- a/newlib/libm/common/sf_lround.c +++ b/newlib/libm/common/sf_lround.c @@ -29,7 +29,7 @@ w &= 0x7fffff; w |= 0x800000; - if (exponent_less_127 < (8 * sizeof (long int)) - 1) + if (exponent_less_127 < (int)((8 * sizeof (long int)) - 1)) { if (exponent_less_127 < 0) return exponent_less_127 < -1 ? 0 : sign;