mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
14 lines
315 B
Diff
14 lines
315 B
Diff
diff --git a/ell/utf8.c b/ell/utf8.c
|
|
index e9998f7..b1e8440 100644
|
|
--- a/ell/utf8.c
|
|
+++ b/ell/utf8.c
|
|
@@ -93,7 +93,7 @@ LIB_EXPORT int l_utf8_get_codepoint(const char *str, size_t len, wchar_t *cp)
|
|
if (len == 0)
|
|
return 0;
|
|
|
|
- if (str[0] > 0) {
|
|
+ if ((signed char)str[0] > 0) {
|
|
*cp = str[0];
|
|
return 1;
|
|
}
|