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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user