From fac003f47703fda50dc2f33a29976fe9eee28eef Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 13 Sep 2001 15:29:59 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@902 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/symtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index 6f01b1094..eca971f65 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -703,7 +703,7 @@ SymEntry* AddGlobalSym (const char* Name, const type* Type, unsigned Flags) unsigned Size = Decode (Type + 1); unsigned ESize = Decode (EType + 1); - if ((Size != 0 && ESize != 0) || + if ((Size != 0 && ESize != 0 && Size != ESize) || TypeCmp (Type+DECODE_SIZE+1, EType+DECODE_SIZE+1) < TC_EQUAL) { /* Types not identical: Conflicting types */ Error ("Conflicting types for `%s'", Name); -- 2.39.2