mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Fixed the last fix. Sigh:-(
git-svn-id: svn://svn.cc65.org/cc65/trunk@1908 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
638f54f3e4
commit
4ca598de3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user