diff options
Diffstat (limited to 'sysdeps/libm-ieee754/s_lrintf.c')
-rw-r--r-- | sysdeps/libm-ieee754/s_lrintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/libm-ieee754/s_lrintf.c b/sysdeps/libm-ieee754/s_lrintf.c index 6d74b36..d80d81a 100644 --- a/sysdeps/libm-ieee754/s_lrintf.c +++ b/sysdeps/libm-ieee754/s_lrintf.c @@ -47,7 +47,7 @@ __lrintf (float x) i0 = i & 0x7fffff; i0 |= 0x800000; - if (j0 < (int32_t) (sizeof (long int) * 8)) + if (j0 < (int32_t) (sizeof (long int) * 8) - 1) { if (j0 < -1) return 0; |