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:
parent
0008f12107
commit
89fc8f3df7
@ -350,6 +350,7 @@ static int istypeexpr (void)
|
||||
return CurTok.Tok == TOK_LPAREN && (
|
||||
(NextTok.Tok >= TOK_FIRSTTYPE && NextTok.Tok <= TOK_LASTTYPE) ||
|
||||
(NextTok.Tok == TOK_CONST) ||
|
||||
(NextTok.Tok == TOK_VOLATILE) ||
|
||||
(NextTok.Tok == TOK_IDENT &&
|
||||
(Entry = FindSym (NextTok.Ident)) != 0 &&
|
||||
SymIsTypeDef (Entry)));
|
||||
|
Loading…
Reference in New Issue
Block a user