Fixed type mask usage.

This commit is contained in:
acqn
2020-07-29 19:51:47 +08:00
committed by Oliver Schmidt
parent fb9b50ff9c
commit 19c81ed866

View File

@@ -215,8 +215,8 @@ static void DoCompare (const Type* lhs, const Type* rhs, typecmp_t* Result)
} }
/* Get the left and right types, signs and qualifiers */ /* Get the left and right types, signs and qualifiers */
LeftType = GetUnderlyingTypeCode (lhs); LeftType = (GetUnderlyingTypeCode (lhs) & T_MASK_TYPE);
RightType = GetUnderlyingTypeCode (rhs); RightType = (GetUnderlyingTypeCode (rhs) & T_MASK_TYPE);
LeftSign = GetSignedness (lhs); LeftSign = GetSignedness (lhs);
RightSign = GetSignedness (rhs); RightSign = GetSignedness (rhs);
LeftQual = GetQualifier (lhs); LeftQual = GetQualifier (lhs);