1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Add missing parentheses

This commit is contained in:
Sebastien Helleu
2011-02-08 21:42:25 +01:00
parent 1fd31361da
commit 3dbd5e3564
+1 -1
View File
@@ -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));