aboutsummaryrefslogtreecommitdiff
path: root/gdb/objc-exp.y
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-02-07 19:18:06 +0000
committerDavid Carlton <carlton@bactrian.org>2003-02-07 19:18:06 +0000
commit9ec3c59b028a60cb6ab45f53f06cba1a24395875 (patch)
tree660b3ce9f1b465c31b507dcbdd2dc5fed7bbc0a9 /gdb/objc-exp.y
parentf79355f07b5ace625d507e1f6308728bcdc757de (diff)
downloadgdb-9ec3c59b028a60cb6ab45f53f06cba1a24395875.zip
gdb-9ec3c59b028a60cb6ab45f53f06cba1a24395875.tar.gz
gdb-9ec3c59b028a60cb6ab45f53f06cba1a24395875.tar.bz2
2003-02-07 David Carlton <carlton@math.stanford.edu>
* Merge with mainline; tag is carlton_dictionary-20030207-merge.
Diffstat (limited to 'gdb/objc-exp.y')
-rw-r--r--gdb/objc-exp.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y
index d9e75a3..5b70b65 100644
--- a/gdb/objc-exp.y
+++ b/gdb/objc-exp.y
@@ -846,7 +846,7 @@ array_mod: '[' ']'
func_mod: '(' ')'
{ $$ = 0; }
| '(' nonempty_typelist ')'
- { free ((PTR)$2); $$ = 0; }
+ { free ($2); $$ = 0; }
;
/* We used to try to recognize more pointer to member types here, but
@@ -1026,9 +1026,9 @@ parse_number (p, len, parsed_float, putithere)
/* It's a float since it contains a point or an exponent. */
if (sizeof (putithere->typed_val_float.dval) <= sizeof (float))
- sscanf (p, "%g", &putithere->typed_val_float.dval);
+ sscanf (p, "%g", (float *)&putithere->typed_val_float.dval);
else if (sizeof (putithere->typed_val_float.dval) <= sizeof (double))
- sscanf (p, "%lg", &putithere->typed_val_float.dval);
+ sscanf (p, "%lg", (double *)&putithere->typed_val_float.dval);
else
{
#ifdef PRINTF_HAS_LONG_DOUBLE
@@ -1281,6 +1281,7 @@ yylex ()
return tokentab2[i].token;
}
+ c = 0;
switch (tokchr = *tokstart)
{
case 0: