diff options
Diffstat (limited to 'lout')
-rw-r--r-- | lout/unicode.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lout/unicode.cc b/lout/unicode.cc index 77bd8077..4f0f0b3b 100644 --- a/lout/unicode.cc +++ b/lout/unicode.cc @@ -92,7 +92,7 @@ const char *nextUtf8Char (const char *s) const char *r; if (s == NULL || s[0] == 0) - r = NULL; + r = NULL; else if((s[0] & 0x80) == 0) r = s + 1; else if((s[0] & 0xe0) == 0xc0 && (s[1] & 0xc0) == 0x80) @@ -118,7 +118,7 @@ const char *nextUtf8Char (const char *s, int len) const char *r; if (s == NULL || len <= 0) - r = NULL; + r = NULL; else if(len >= 1 && (s[0] & 0x80) == 0) r = s + 1; else if(len >= 2 && (s[0] & 0xe0) == 0xc0 && (s[1] & 0xc0) == 0x80) |