billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=8d18d16b408eec77f0b09d7cb0e69fcc71fe819b

commit 8d18d16b408eec77f0b09d7cb0e69fcc71fe819b
Author: Boris Faure <bill...@gmail.com>
Date:   Tue Mar 25 21:35:57 2014 +0100

    we can't be sure of the signedness of Eina_Unicode
---
 src/bin/utf8.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/utf8.c b/src/bin/utf8.c
index c4efdea..3f8d500 100644
--- a/src/bin/utf8.c
+++ b/src/bin/utf8.c
@@ -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);

-- 


Reply via email to