Skip to content

Commit b2f72ca

Browse files
authored
Fix compilation in C90 mode (#284)
1 parent aa82a40 commit b2f72ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utf8proc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,9 @@ UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_normalize_utf32(utf8proc_int32_t *b
688688
int len = starter_property->comb_length;
689689
utf8proc_int32_t max_second = utf8proc_combinations_second[idx + len - 1];
690690
if (current_char <= max_second) {
691+
int off;
691692
// TODO: binary search? arithmetic search?
692-
for (int off = 0; off < len; ++off) {
693+
for (off = 0; off < len; ++off) {
693694
utf8proc_int32_t second = utf8proc_combinations_second[idx + off];
694695
if (current_char < second) {
695696
/* not found */

0 commit comments

Comments
 (0)