mirror of
https://github.com/cc65/cc65.git
synced 2025-01-27 09:33:42 +00:00
Fixed comparing an enum type with a non-enum type in DoCompare().
This commit is contained in:
parent
6e0fb630d7
commit
1cde952cf5
@ -203,8 +203,8 @@ static void DoCompare (const Type* lhs, const Type* rhs, typecmp_t* Result)
|
||||
if ((IsTypeEnum (lhs) || IsTypeEnum (rhs))) {
|
||||
|
||||
/* Compare the tag types */
|
||||
Sym1 = GetESUSymEntry (lhs);
|
||||
Sym2 = GetESUSymEntry (rhs);
|
||||
Sym1 = IsTypeEnum (lhs) ? GetESUSymEntry (lhs) : 0;
|
||||
Sym2 = IsTypeEnum (rhs) ? GetESUSymEntry (rhs) : 0;
|
||||
|
||||
if (Sym1 != Sym2) {
|
||||
if (Sym1 == 0 || Sym2 == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user