From: cuz Date: Thu, 13 Sep 2001 15:29:59 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~2679 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fac003f47703fda50dc2f33a29976fe9eee28eef;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@902 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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);