1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Fixed a bug: The volatile keyword was not accepted in type casts or as

argument to the sizeof operator, if the type spec is starting with this
keyword.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2921 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-03-13 22:37:13 +00:00
parent 0008f12107
commit 89fc8f3df7

View File

@ -350,6 +350,7 @@ static int istypeexpr (void)
return CurTok.Tok == TOK_LPAREN && ( return CurTok.Tok == TOK_LPAREN && (
(NextTok.Tok >= TOK_FIRSTTYPE && NextTok.Tok <= TOK_LASTTYPE) || (NextTok.Tok >= TOK_FIRSTTYPE && NextTok.Tok <= TOK_LASTTYPE) ||
(NextTok.Tok == TOK_CONST) || (NextTok.Tok == TOK_CONST) ||
(NextTok.Tok == TOK_VOLATILE) ||
(NextTok.Tok == TOK_IDENT && (NextTok.Tok == TOK_IDENT &&
(Entry = FindSym (NextTok.Ident)) != 0 && (Entry = FindSym (NextTok.Ident)) != 0 &&
SymIsTypeDef (Entry))); SymIsTypeDef (Entry)));