From 9ec3c59b028a60cb6ab45f53f06cba1a24395875 Mon Sep 17 00:00:00 2001 From: David Carlton Date: Fri, 7 Feb 2003 19:18:06 +0000 Subject: 2003-02-07 David Carlton * Merge with mainline; tag is carlton_dictionary-20030207-merge. --- gdb/objc-exp.y | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gdb/objc-exp.y') 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: -- cgit v1.1