summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-02-08 21:42:25 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-02-08 21:42:25 +0100
commit3dbd5e3564320b1cb575f4b950df19dec89b7383 (patch)
treeb555d5de9102d0396ce853c5d9d63e5bef4e4dd5 /src/core
parent1fd31361da364540f56f09fcdf818255d80e6a4c (diff)
downloadweechat-3dbd5e3564320b1cb575f4b950df19dec89b7383.zip
Add missing parentheses
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-utf8.c2
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));