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 | 689e4e2d8a2fd0d55acc62c746fdcc302f851995 (patch) | |
tree | f444c80441738f50b041e6c996813da97f44278a /gdb/jv-exp.y | |
parent | 7ddd14deffa8d2579c691bb8f19585fb2e7b5de3 (diff) | |
download | gdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.zip gdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.tar.gz gdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.tar.bz2 |
* 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/jv-exp.y')
-rw-r--r-- | gdb/jv-exp.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y index 1db33a6..14a7bf8 100644 --- a/gdb/jv-exp.y +++ b/gdb/jv-exp.y @@ -713,7 +713,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 ... */ |