we can't be sure of the signedness of Eina_Unicode

This commit is contained in:
Boris Faure 2014-03-25 21:35:57 +01:00
parent 8f3258f1b3
commit 8d18d16b40
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ codepoint_to_utf8(Eina_Unicode g, char *txt)
txt[5] = 0;
return 5;
}
else if (g < (unsigned int)(1 << (1 + 6 + 6 + 6 + 6 + 6)))
else if ((unsigned int)g < (unsigned int)(1 << (1 + 6 + 6 + 6 + 6 + 6)))
{ // 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
txt[0] = 0xfc | ((g >> 30) & 0x01);
txt[1] = 0x80 | ((g >> 24) & 0x3f);