diff --git a/icu4c/source/common/uniset.cpp b/icu4c/source/common/uniset.cpp index 3794dd8f4f..86801cb6a6 100644 --- a/icu4c/source/common/uniset.cpp +++ b/icu4c/source/common/uniset.cpp @@ -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]);