pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use is_utf8() instead, for more readable.
[smdp.git]
/
src
/
parser.c
diff --git
a/src/parser.c
b/src/parser.c
index
6f5c4c8
..
478da5b
100644
(file)
--- a/
src/parser.c
+++ b/
src/parser.c
@@
-382,7
+382,7
@@
int length_utf8(char ch) {
int i = 0; // increment
- while(
ch & 0x80
) {
+ while(
is_utf8(ch)
) {
i++;
ch <<= 1;
}