diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-08-24 20:49:59 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-08-24 20:49:59 +0000 |
commit | 309faeb5ca258d9b5a09c584d6cdd795e2e59784 (patch) | |
tree | 8d0d02ad56f2919df160525b4666f89d5e51f090 /newlib/libm/common | |
parent | 70650b2db462ce29927cccbf5cd51531de3e5a39 (diff) | |
download | newlib-309faeb5ca258d9b5a09c584d6cdd795e2e59784.zip newlib-309faeb5ca258d9b5a09c584d6cdd795e2e59784.tar.gz newlib-309faeb5ca258d9b5a09c584d6cdd795e2e59784.tar.bz2 |
2007-08-24 Jeff Johnston <jjohnstn@redhat.com>
* libm/common/sf_lround.c (lroundf): Cast sizeof calculation
to int before comparing it to a signed int value.
Diffstat (limited to 'newlib/libm/common')
-rw-r--r-- | newlib/libm/common/sf_lround.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/common/sf_lround.c b/newlib/libm/common/sf_lround.c index d715423..eee420b 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; |