1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-17 09:06:50 +02:00

(decode_one_format): Use printf's L modifier for long doubles,

not `l'.  From Eric Backus.
This commit is contained in:
Jim Meyering
1996-04-21 21:07:13 +00:00
parent 5beebbd8da
commit c07d15973c
+1 -1
View File
@@ -855,7 +855,7 @@ decode_one_format (const char *s, const char **next, struct tspec *tspec)
#ifdef HAVE_LONG_DOUBLE
case FLOAT_LONG_DOUBLE:
print_function = print_long_double;
pre_fmt_string = "%%%d.%dle%%c";
pre_fmt_string = "%%%d.%dLe%%c";
fmt_string = xmalloc (strlen (pre_fmt_string));
sprintf (fmt_string, pre_fmt_string,
LDBL_DIG + 8, LDBL_DIG);