summaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-01-09 19:27:15 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-01-09 19:27:15 +0000
commit689e4e2d8a2fd0d55acc62c746fdcc302f851995 (patch)
treef444c80441738f50b041e6c996813da97f44278a /gdb/c-exp.y
parent7ddd14deffa8d2579c691bb8f19585fb2e7b5de3 (diff)
downloadbinutils-gdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.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/c-exp.y')
-rw-r--r--gdb/c-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 22bb4c63acd..b5207212f7d 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1125,7 +1125,7 @@ parse_number (p, len, parsed_float, putithere)
return (DECFLOAT);
}
- num = sscanf (p, DOUBLEST_SCAN_FORMAT "%s",
+ num = sscanf (p, "%" DOUBLEST_SCAN_FORMAT "%s",
&putithere->typed_val_float.dval, s);
p[len] = saved_char; /* restore the input stream */