From: cuz Date: Sat, 13 Mar 2004 22:37:13 +0000 (+0000) Subject: Fixed a bug: The volatile keyword was not accepted in type casts or as X-Git-Tag: V2.12.0~901 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89fc8f3df7a03aa5ee7b231f294cd22dd1e04de8;p=cc65 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 --- diff --git a/src/cc65/expr.c b/src/cc65/expr.c index 47abb50c4..f938ee67c 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -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)));