Skip to content

Commit

Permalink
Fix offsets in selector_table (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Jan 22, 2024
1 parent 377a81d commit 1f038ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selector_table.cc
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

0 comments on commit 1f038ca

Please sign in to comment.