mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Fixed a comment on struct/union types in DoCompare().
This commit is contained in:
parent
1cde952cf5
commit
6bb2d1d5d1
@ -378,11 +378,13 @@ static void DoCompare (const Type* lhs, const Type* rhs, typecmp_t* Result)
|
||||
|
||||
if (Sym1 != Sym2) {
|
||||
/* Both must be in the same scope and have the same name to
|
||||
** be identical. This shouldn't happen in the current code
|
||||
** base, but we still do this to be future-proof.
|
||||
** be identical.
|
||||
*/
|
||||
if (Sym1->Owner != Sym2->Owner ||
|
||||
strcmp (Sym1->Name, Sym2->Name) != 0) {
|
||||
/* This shouldn't happen in the current code base, but
|
||||
** we still handle this case to be future-proof.
|
||||
*/
|
||||
SetResult (Result, TC_INCOMPATIBLE);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user