summaryrefslogtreecommitdiffstats
path: root/newlib/libm/common/sf_lround.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/sf_lround.c')
-rw-r--r--newlib/libm/common/sf_lround.c2
1 files changed, 1 insertions, 1 deletions
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;