aboutsummaryrefslogtreecommitdiff
path: root/gcc/cexp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r--gcc/cexp.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index 0e48c0f..5e1c635 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -460,13 +460,13 @@ yylex ()
{
register int c;
register int namelen;
- register char *tokstart;
+ register unsigned char *tokstart;
register struct token *toktab;
int wide_flag;
retry:
- tokstart = lexptr;
+ tokstart = (unsigned char *) lexptr;
c = *tokstart;
/* See if it is a special token of length 2. */
if (! keyword_parsing)
@@ -522,7 +522,7 @@ yylex ()
else if (c == '\'')
break;
}
- yylval.name.address = (U_CHAR *) tokstart;
+ yylval.name.address = tokstart;
yylval.name.length = lexptr - start_ptr;
return NAME;
}
@@ -677,7 +677,7 @@ yylex ()
else if (c == '"')
break;
}
- yylval.name.address = (U_CHAR *) tokstart;
+ yylval.name.address = tokstart;
yylval.name.length = lexptr - start_ptr;
return NAME;
}
@@ -716,7 +716,7 @@ yylex ()
}
lexptr += namelen;
- yylval.name.address = (U_CHAR *) tokstart;
+ yylval.name.address = tokstart;
yylval.name.length = namelen;
return NAME;
}