diff options
-rw-r--r-- | src/core/wee-utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-utf8.c b/src/core/wee-utf8.c index d4cacd0db..bb4c6ac54 100644 --- a/src/core/wee-utf8.c +++ b/src/core/wee-utf8.c @@ -267,7 +267,7 @@ utf8_char_int (const char *string) else if ((ptr_string[0] & 0xF8) == 0xF0) { if (!ptr_string[1]) - return (int)ptr_string[0] & 0x07; + return (int)(ptr_string[0] & 0x07); if (!ptr_string[2]) return (((int)(ptr_string[0] & 0x07)) << 6) + ((int)(ptr_string[1] & 0x3F)); |