]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug: The volatile keyword was not accepted in type casts or as
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Mar 2004 22:37:13 +0000 (22:37 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Mar 2004 22:37:13 +0000 (22:37 +0000)
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

src/cc65/expr.c

index 47abb50c4dafe0622b95290297e2a77a95ccd7a5..f938ee67c3f5dfaa9bc658c240ef6ce65f052257 100644 (file)
@@ -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)));