Skip to content

Commit 1f038ca

Browse files
authored
Fix offsets in selector_table (#273)
1 parent 377a81d commit 1f038ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

selector_table.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static BOOL selector_types_equal(const char *t1, const char *t2)
172172
{
173173
if (t1 == nullptr || t2 == nullptr) { return t1 == t2; }
174174

175-
while (('\0' != *t1) && ('\0' != *t1))
175+
while (('\0' != *t1) && ('\0' != *t2))
176176
{
177177
t1 = skip_irrelevant_type_info(t1);
178178
t2 = skip_irrelevant_type_info(t2);
@@ -188,7 +188,7 @@ static BOOL selector_types_equal(const char *t1, const char *t2)
188188
// and apply a cluebat to those responsible.
189189
if ((*t1 == '*') && (*t2 != '*'))
190190
{
191-
if (*t2 == '^' && (((*(t2+1) == 'C') || (*(t2+2) == 'c'))))
191+
if (*t2 == '^' && (((*(t2+1) == 'C') || (*(t2+1) == 'c'))))
192192
{
193193
t2++;
194194
}

0 commit comments

Comments
 (0)