diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2008-01-09 19:27:15 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2008-01-09 19:27:15 +0000 |
commit | 7a0a8201c979a7ca35c5da586bb2009f771348ab (patch) | |
tree | a3c19b4893b893d574669b4d6eb24cea34fe9c05 /gdb/dfp.c | |
parent | 65cedc30e96cac4f48f294973dfa9a2ca9bd0057 (diff) | |
download | gdb-7a0a8201c979a7ca35c5da586bb2009f771348ab.tar.gz |
* doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
(DOUBLEST_SCAN_FORMAT): Likewise.
* dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
* ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
* c-exp.y (parse_number): Likewise.
* jv-exp.y (parse_number): Likewise.
* objc-exp.y (parse_number): Likewise.
* p-exp.y (parse_number): Likewise.
Diffstat (limited to 'gdb/dfp.c')
-rw-r--r-- | gdb/dfp.c | 3 |
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.")); |