ICU-176 two important macros need more parentheses for op precedence!

X-SVN-Rev: 2031
This commit is contained in:
Madhu K 2000-07-25 00:46:25 +00:00
parent 2756f4ce2a
commit 9882141a96

View File

@ -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)