Jan Engelhardt
91235b17ea
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ell?expand=0&rev=15
22 lines
506 B
Diff
22 lines
506 B
Diff
From: Andreas Schwab <schwab@suse.de>
|
|
Date: 2019-01-31 12:45:09+0100
|
|
|
|
Don't depend on the signedness of char.
|
|
---
|
|
ell/utf8.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: ell-0.17/ell/utf8.c
|
|
===================================================================
|
|
--- ell-0.17.orig/ell/utf8.c
|
|
+++ ell-0.17/ell/utf8.c
|
|
@@ -93,7 +93,7 @@ LIB_EXPORT int l_utf8_get_codepoint(cons
|
|
if (len == 0)
|
|
return 0;
|
|
|
|
- if (str[0] > 0) {
|
|
+ if ((str[0] & 0x80) == 0) {
|
|
*cp = str[0];
|
|
return 1;
|
|
}
|