From 6bb2d1d5d1d67e63af8e84619eaa261bfda5d952 Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 7 Sep 2020 04:19:27 +0800 Subject: [PATCH] Fixed a comment on struct/union types in DoCompare(). --- src/cc65/typecmp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cc65/typecmp.c b/src/cc65/typecmp.c index f179bff14..1f4643e73 100644 --- a/src/cc65/typecmp.c +++ b/src/cc65/typecmp.c @@ -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; }