ICU-2350 fix binary search bug
X-SVN-Rev: 11039
This commit is contained in:
parent
3e3223963e
commit
4dc1d411e8
@ -3347,7 +3347,7 @@ void UnicodeSet::caseCloseOne(UChar folded) {
|
||||
}
|
||||
} while (low < high);
|
||||
|
||||
x = low + high; // ((low + high) >> 1) << 1
|
||||
x = (low + high) & ~1; // ((low + high) >> 1) << 1
|
||||
if (folded == CASE_PAIRS[x]) {
|
||||
add(CASE_PAIRS[x]);
|
||||
add(CASE_PAIRS[x+1]);
|
||||
|
Loading…
Reference in New Issue
Block a user