Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/sf_lrint.c')
-rw-r--r--newlib/libm/common/sf_lrint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/common/sf_lrint.c b/newlib/libm/common/sf_lrint.c
index 427bbb655..3165705d1 100644
--- a/newlib/libm/common/sf_lrint.c
+++ b/newlib/libm/common/sf_lrint.c
@@ -63,7 +63,7 @@ TWO23[2]={
if (j0 < -1)
return 0;
else if (j0 >= 23)
- result = (long int) i0 << (j0 - 23);
+ result = (long int) ((i0 & 0x7fffff) | 0x800000) << (j0 - 23);
else
{
w = TWO23[sx] + x;