[hackers] [scc] Fix test of unexpected name in type name || Roberto E. Vargas Caballero
commit d27d299ee050ee5a26d277cbf9839a7d3eb2fb14
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Aug 8 12:09:15 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Aug 8 12:09:15 2015 +0200
Fix test of unexpected name in type name
The test were inverted.
diff --git a/cc1/decl.c b/cc1/decl.c
index 75c159e..3ea8de2 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -423,7 +423,7 @@ type(Symbol *sym, int sclass, Type *data)
{
if (sclass)
error("class storage in type name");
- if (!sym->name)
+ if (sym->name)
error("unexpected identifier in type name");
}
Received on Sat Aug 08 2015 - 12:10:22 CEST
This archive was generated by hypermail 2.3.0
: Sat Aug 08 2015 - 12:12:14 CEST