From 309faeb5ca258d9b5a09c584d6cdd795e2e59784 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 24 Aug 2007 20:49:59 +0000 Subject: 2007-08-24 Jeff Johnston * libm/common/sf_lround.c (lroundf): Cast sizeof calculation to int before comparing it to a signed int value. --- newlib/libm/common/sf_lround.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libm/common') diff --git a/newlib/libm/common/sf_lround.c b/newlib/libm/common/sf_lround.c index d715423e4..eee420b93 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; -- cgit v1.2.3