From 4ca598de3ac5b24cd3d53e36363de478f4e628de Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 20 Jan 2003 20:53:42 +0000 Subject: [PATCH] Fixed the last fix. Sigh:-( git-svn-id: svn://svn.cc65.org/cc65/trunk@1908 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/compile.c b/src/cc65/compile.c index 77abffb43..9332e646e 100644 --- a/src/cc65/compile.c +++ b/src/cc65/compile.c @@ -107,7 +107,7 @@ static void Parse (void) ParseDeclSpec (&Spec, SC_EXTERN | SC_STATIC, T_INT); /* Don't accept illegal storage classes */ - if ((Spec.StorageClass & SC_AUTO) != 0 || + if ((Spec.StorageClass & SC_AUTO) != 0 && (Spec.StorageClass & SC_REGISTER) != 0) { Error ("Illegal storage class"); Spec.StorageClass = SC_EXTERN | SC_STATIC; -- 2.39.5