diff --git a/src/cc65/compile.c b/src/cc65/compile.c index c51191885..befb1e9c6 100644 --- a/src/cc65/compile.c +++ b/src/cc65/compile.c @@ -141,8 +141,8 @@ static void Parse (void) * specified as static. This means that "extern int i" will not * get storage allocated. */ - if ((Decl.StorageClass & SC_FUNC) == 0 && - (Decl.StorageClass & SC_TYPEDEF) == 0 && + if ((Decl.StorageClass & SC_FUNC) != SC_FUNC && + (Decl.StorageClass & SC_TYPEDEF) != SC_TYPEDEF && ((Spec.Flags & DS_DEF_STORAGE) != 0 || (Decl.StorageClass & (SC_STATIC | SC_EXTERN)) == SC_STATIC)) {