mirror of
https://github.com/cc65/cc65.git
synced 2025-04-06 20:37:16 +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:
parent
358578d417
commit
fac003f477
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user