1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 04:29:01 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@902 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-09-13 15:29:59 +00:00
parent 358578d417
commit fac003f477

View File

@ -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);