summaryrefslogtreecommitdiff
path: root/gdb/dfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dfp.c')
-rw-r--r--gdb/dfp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dfp.c b/gdb/dfp.c
index bf82114634b..e184ecdd346 100644
--- a/gdb/dfp.c
+++ b/gdb/dfp.c
@@ -237,7 +237,8 @@ decimal_from_floating (struct value *from, gdb_byte *to, int len)
char *buffer;
int ret;
- ret = asprintf (&buffer, "%.30Lg", value_as_double (from));
+ ret = asprintf (&buffer, "%.30" DOUBLEST_PRINT_FORMAT,
+ value_as_double (from));
if (ret < 0)
error (_("Error in memory allocation for conversion to decimal float."));