Skip to content

Commit 670e716

Browse files
committed
fix: binary search
1 parent 64a637c commit 670e716

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

coregrind/m_debuginfo/inltab_lookup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ static Word binary_search_inltab(const DebugInfo* di, Addr a) {
4949
/* Found it! Return the index */
5050
return i;
5151
}
52-
/* Since addr_lo is sorted and we're moving backwards, if we encounter
53-
an addr_lo < a, we can stop as we've passed the potential range */
54-
if (di->inltab[i].addr_lo < a) {
52+
/* Since addr_hi is sorted and we're moving backwards, if we encounter
53+
an addr_hi <= a, we can stop as we've passed the potential range */
54+
if (di->inltab[i].addr_hi <= a) {
5555
break;
5656
}
5757
}

0 commit comments

Comments
 (0)