summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xs_unicode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_unicode.h b/xs_unicode.h
index 7686dcd..493cfde 100644
--- a/xs_unicode.h
+++ b/xs_unicode.h
@@ -232,7 +232,7 @@ unsigned int *_xs_unicode_upper_search(unsigned int cpoint)
232/* searches for an uppercase codepoint in the case fold table */ 232/* searches for an uppercase codepoint in the case fold table */
233{ 233{
234 int b = 0; 234 int b = 0;
235 int t = xs_countof(xs_unicode_case_fold_table) / 2 + 1; 235 int t = xs_countof(xs_unicode_case_fold_table) / 2 - 1;
236 236
237 while (t >= b) { 237 while (t >= b) {
238 int n = (b + t) / 2; 238 int n = (b + t) / 2;