Fixed wrong "Mixed declarations and code are not supported in cc65" error message when it should be "Expression expected".

This commit is contained in:
acqn 2023-11-30 00:36:13 +08:00
parent c0a2021d9a
commit 47e7ed2f56
1 changed files with 2 additions and 2 deletions

View File

@ -1412,9 +1412,9 @@ static void Primary (ExprDesc* E)
} else {
/* Let's see if this is a C99-style declaration */
DeclSpec Spec;
ParseDeclSpec (&Spec, TS_DEFAULT_TYPE_INT, SC_AUTO);
ParseDeclSpec (&Spec, TS_DEFAULT_TYPE_NONE, SC_AUTO);
if (Spec.Type->C != T_END) {
if ((Spec.Flags & DS_DEF_TYPE) == 0) {
/* Recognized but not supported */
Error ("Mixed declarations and code are not supported in cc65");