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/p-exp.y | |
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/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 857a69f9b39..9cab7cdb064 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -797,7 +797,7 @@ parse_number (p, len, parsed_float, putithere) char saved_char = p[len]; p[len] = 0; /* null-terminate the token */ - num = sscanf (p, DOUBLEST_SCAN_FORMAT "%c", + num = sscanf (p, "%" DOUBLEST_SCAN_FORMAT "%c", &putithere->typed_val_float.dval, &c); p[len] = saved_char; /* restore the input stream */ if (num != 1) /* check scanf found ONLY a float ... */ |