From: Paul Eggert Date: Sun, 27 Jan 2019 07:11:22 +0000 (-0800) Subject: printf,seq: improve long double accuracy X-Git-Tag: v8.31~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=v8.30-50-geb73e23;p=thirdparty%2Fcoreutils.git printf,seq: improve long double accuracy This fixes a thinko in the previous patch. * gl/lib/cl-strtod.c (STRTOD): New macro. (CL_STRTOD): Use it. --- diff --git a/gl/lib/cl-strtod.c b/gl/lib/cl-strtod.c index fa77235ba8..dd6eef8256 100644 --- a/gl/lib/cl-strtod.c +++ b/gl/lib/cl-strtod.c @@ -29,10 +29,12 @@ #if LONG # define CL_STRTOD cl_strtold # define DOUBLE long double +# define STRTOD strtold # define C_STRTOD c_strtold #else # define CL_STRTOD cl_strtod # define DOUBLE double +# define STRTOD strtod # define C_STRTOD c_strtod #endif @@ -57,7 +59,7 @@ DOUBLE CL_STRTOD (char const *nptr, char **restrict endptr) { char *end; - DOUBLE d = strtod (nptr, &end); + DOUBLE d = STRTOD (nptr, &end); if (*end) { int strtod_errno = errno;