diff options
author | behdad <behdad> | 2002-06-16 13:25:10 +0000 |
---|---|---|
committer | behdad <behdad> | 2002-06-16 13:25:10 +0000 |
commit | 093119484e183cb5fb50de7247a6266e4be1a5eb (patch) | |
tree | 19c0d4b28ea2f439d1b7317500914d6b37cccc73 | |
parent | 421283dee65cf0799a3794e55660ebe6323bbb9d (diff) |
Small cleanup.
-rw-r--r-- | fribidi_char_sets_utf8.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fribidi_char_sets_utf8.c b/fribidi_char_sets_utf8.c index aba3ee9..1ce8e28 100644 --- a/fribidi_char_sets_utf8.c +++ b/fribidi_char_sets_utf8.c @@ -78,14 +78,14 @@ fribidi_unicode_to_utf8 (FriBidiChar *us, int length, char *s) { /* 7 sig bits */ *t++ = mychar; } - else if (mychar <= 0x7FF) /* 11 sig bits */ - { - *t++ = 0xC0 | (unsigned char) ((mychar >> 6) & 0x1F); /* upper 5 bits */ + else if (mychar <= 0x7FF) + { /* 11 sig bits */ + *t++ = 0xC0 | (unsigned char) (mychar >> 6); /* upper 5 bits */ *t++ = 0x80 | (unsigned char) (mychar & 0x3F); /* lower 6 bits */ } else if (mychar <= 0xFFFF) { /* 16 sig bits */ - *t++ = 0xE0 | (unsigned char) ((mychar >> 12) & 0x0F); /* upper 4 bits */ + *t++ = 0xE0 | (unsigned char) (mychar >> 12); /* upper 4 bits */ *t++ = 0x80 | (unsigned char) ((mychar >> 6) & 0x3F); /* next 6 bits */ *t++ = 0x80 | (unsigned char) (mychar & 0x3F); /* lowest 6 bits */ } |