summaryrefslogtreecommitdiffstats
path: root/lib/libc/gdtoa/machdep_ldisx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gdtoa/machdep_ldisx.c')
-rw-r--r--lib/libc/gdtoa/machdep_ldisx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gdtoa/machdep_ldisx.c b/lib/libc/gdtoa/machdep_ldisx.c
index 0b61de6..c08c85e 100644
--- a/lib/libc/gdtoa/machdep_ldisx.c
+++ b/lib/libc/gdtoa/machdep_ldisx.c
@@ -33,6 +33,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <float.h>
+
#include "gdtoaimp.h"
long double
@@ -40,6 +42,6 @@ strtold(const char * __restrict s, char ** __restrict sp)
{
long double result;
- strtopx(s, sp, &result);
+ strtorx(s, sp, FLT_ROUNDS, &result);
return result;
}
OpenPOWER on IntegriCloud