X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gunidecomp.c;h=194c283c446dc94383a4647208e4acb9b7c4770d;hb=5c00c3497209ae2d5c59f32032ce02f2f0943d10;hp=19d39e8cd6538c6284c5f166f6dc11db91411120;hpb=c9bd7542e1a28ba9de60048361c0a97d251833e7;p=platform%2Fupstream%2Fglib.git diff --git a/gunidecomp.c b/gunidecomp.c index 19d39e8..194c283 100644 --- a/gunidecomp.c +++ b/gunidecomp.c @@ -29,13 +29,13 @@ /* We cheat a bit and cast type values to (char *). We detect these using the &0xff trick. */ #define CC(Page, Char) \ - (((((int) (combining_class_table[Page])) & 0xff) \ - == ((int) combining_class_table[Page])) \ - ? ((int) combining_class_table[Page]) \ + ((((GPOINTER_TO_INT(combining_class_table[Page])) & 0xff) \ + == GPOINTER_TO_INT(combining_class_table[Page])) \ + ? GPOINTER_TO_INT(combining_class_table[Page]) \ : (combining_class_table[Page][Char])) #define COMBINING_CLASS(Char) \ - (((Char) > (UNICODE_LAST_CHAR)) ? 0 : CC((Char) >> 8, (Char) & 0xff)) + (((Char) > (G_UNICODE_LAST_CHAR)) ? 0 : CC((Char) >> 8, (Char) & 0xff)) /* Compute the canonical ordering of a string in-place. */ void