From: Thomas Koutcher Date: Fri, 20 Jun 2025 20:10:58 +0000 (+0200) Subject: Fix compilation in C90 mode (#284) X-Git-Tag: archive/raspbian/2.11.3-2+rpi1^2~10^2^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b2f72ca9dcb075c33e2591067bd6b029e4ebc4e1;p=utf8proc.git Fix compilation in C90 mode (#284) --- diff --git a/utf8proc.c b/utf8proc.c index 3461994..a7aff86 100644 --- a/utf8proc.c +++ b/utf8proc.c @@ -688,8 +688,9 @@ UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_normalize_utf32(utf8proc_int32_t *b int len = starter_property->comb_length; utf8proc_int32_t max_second = utf8proc_combinations_second[idx + len - 1]; if (current_char <= max_second) { + int off; // TODO: binary search? arithmetic search? - for (int off = 0; off < len; ++off) { + for (off = 0; off < len; ++off) { utf8proc_int32_t second = utf8proc_combinations_second[idx + off]; if (current_char < second) { /* not found */