ICU-2350 fix binary search bug

X-SVN-Rev: 11039
This commit is contained in:
Alan Liu 2003-02-14 00:12:17 +00:00
parent 3e3223963e
commit 4dc1d411e8

View File

@ -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]);