Skip to content

Commit a47276f

Browse files
committed
Bug #74891: default cmake excludes utf8_5624_1 charset, required for main.ctype_ldml
Fix scan_one_character() to work correctly on architectures where char is unsigned by default.
1 parent 961958f commit a47276f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings/ctype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ scan_one_character(const char *s, const char *e, my_wc_t *wc)
425425
wc[0]= 0;
426426
return len;
427427
}
428-
else if (s[0] > 0) /* 7-bit character */
428+
else if ((int8) s[0] > 0) /* 7-bit character */
429429
{
430430
wc[0]= 0;
431431
return 1;

0 commit comments

Comments
 (0)