diff options
Diffstat (limited to 'newlib/libc/machine/powerpc/strtoufix64.c')
-rw-r--r-- | newlib/libc/machine/powerpc/strtoufix64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/machine/powerpc/strtoufix64.c b/newlib/libc/machine/powerpc/strtoufix64.c index 47a7984e4..539f953a4 100644 --- a/newlib/libc/machine/powerpc/strtoufix64.c +++ b/newlib/libc/machine/powerpc/strtoufix64.c @@ -27,7 +27,7 @@ _DEFUN (_strtoufix64_r, (rptr, nptr, endptr), _simdstrtold ((char *)nptr, endptr, &ldbl); /* treat NAN as domain error, +/- infinity as saturation */ - ld_type = _simdldcheck (&ldbl.ld); + ld_type = _simdldcheck (&ldbl); if (ld_type != 0) { if (ld_type == 1) @@ -86,7 +86,7 @@ _DEFUN (_strtoufix64_r, (rptr, nptr, endptr), { if (Ebits < 32) { - result = tmp + ((word2(ldbl) & (1 << (64 - Ebits - 1))) != 0); + result = tmp + ((word2(ldbl) & (1 << (32 - Ebits - 1))) != 0); /* if rounding causes carry, then saturation has occurred */ if (result < tmp) { |