diff options
author | das <das@FreeBSD.org> | 2007-12-03 07:17:33 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2007-12-03 07:17:33 +0000 |
commit | 3f2a2dba4d4736a24fc3d2d5b0fc88cb2366e371 (patch) | |
tree | dfbf857f01092f36ec434909d5660e11c5be0ea8 /lib/libc/gdtoa/machdep_ldisx.c | |
parent | bfeab92a370c0d11a767a0b417b85c10cde168c2 (diff) | |
download | FreeBSD-src-3f2a2dba4d4736a24fc3d2d5b0fc88cb2366e371.zip FreeBSD-src-3f2a2dba4d4736a24fc3d2d5b0fc88cb2366e371.tar.gz |
In scanf, round according to the current rounding mode.
Diffstat (limited to 'lib/libc/gdtoa/machdep_ldisx.c')
-rw-r--r-- | lib/libc/gdtoa/machdep_ldisx.c | 4 |
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; } |