From 89fc8f3df7a03aa5ee7b231f294cd22dd1e04de8 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 13 Mar 2004 22:37:13 +0000 Subject: [PATCH] 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 --- src/cc65/expr.c | 1 + 1 file changed, 1 insertion(+) 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))); -- 2.39.5