mirror of
https://github.com/cc65/cc65.git
synced 2025-08-10 04:25:21 +00:00
Fixed a comment on struct/union types in DoCompare().
This commit is contained in:
@@ -378,11 +378,13 @@ static void DoCompare (const Type* lhs, const Type* rhs, typecmp_t* Result)
|
|||||||
|
|
||||||
if (Sym1 != Sym2) {
|
if (Sym1 != Sym2) {
|
||||||
/* Both must be in the same scope and have the same name to
|
/* Both must be in the same scope and have the same name to
|
||||||
** be identical. This shouldn't happen in the current code
|
** be identical.
|
||||||
** base, but we still do this to be future-proof.
|
|
||||||
*/
|
*/
|
||||||
if (Sym1->Owner != Sym2->Owner ||
|
if (Sym1->Owner != Sym2->Owner ||
|
||||||
strcmp (Sym1->Name, Sym2->Name) != 0) {
|
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);
|
SetResult (Result, TC_INCOMPATIBLE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user