commit 456a70a

byte  ·  2026-01-24 21:05:16 +0000 UTC
parent bfd071c
fixing out of bounds
1 files changed,  +1, -1
+1, -1
1@@ -232,7 +232,7 @@ unsigned int *_xs_unicode_upper_search(unsigned int cpoint)
2 /* searches for an uppercase codepoint in the case fold table */
3 {
4     int b = 0;
5-    int t = xs_countof(xs_unicode_case_fold_table) / 2 + 1;
6+    int t = xs_countof(xs_unicode_case_fold_table) / 2 - 1;
7 
8     while (t >= b) {
9         int n = (b + t) / 2;