mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-17 02:37:25 +00:00
ICU-176 two important macros need more parentheses for op precedence!
X-SVN-Rev: 2031
This commit is contained in:
parent
2756f4ce2a
commit
9882141a96
1 changed files with 2 additions and 2 deletions
|
@ -66,9 +66,9 @@ utf8_back1SafeBody(const uint8_t *s, UTextOffset start, UTextOffset i);
|
|||
/* single-code point definitions -------------------------------------------- */
|
||||
|
||||
/* classes of code unit values */
|
||||
#define UTF8_IS_SINGLE(uchar) ((uchar)&0x80==0)
|
||||
#define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0)
|
||||
#define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e)
|
||||
#define UTF8_IS_TRAIL(uchar) ((uchar)&0xc0==0x80)
|
||||
#define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80)
|
||||
|
||||
/* number of code units per code point */
|
||||
#define UTF8_NEED_MULTIPLE_UCHAR(c) ((uint32_t)(c)>0x7f)
|
||||
|
|
Loading…
Add table
Reference in a new issue