Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix offsets in selector_table #273

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions selector_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static BOOL selector_types_equal(const char *t1, const char *t2)
{
if (t1 == nullptr || t2 == nullptr) { return t1 == t2; }

while (('\0' != *t1) && ('\0' != *t1))
while (('\0' != *t1) && ('\0' != *t2))
{
t1 = skip_irrelevant_type_info(t1);
t2 = skip_irrelevant_type_info(t2);
Expand All @@ -188,7 +188,7 @@ static BOOL selector_types_equal(const char *t1, const char *t2)
// and apply a cluebat to those responsible.
if ((*t1 == '*') && (*t2 != '*'))
{
if (*t2 == '^' && (((*(t2+1) == 'C') || (*(t2+2) == 'c'))))
if (*t2 == '^' && (((*(t2+1) == 'C') || (*(t2+1) == 'c'))))
{
t2++;
}
Expand Down