mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
ICU-10624 Swat clang compile warnings.
X-SVN-Rev: 34863
This commit is contained in:
parent
a988b05e8b
commit
181351be76
1 changed files with 3 additions and 3 deletions
|
@ -78,9 +78,9 @@ utf8_countTrailBytes[256];
|
|||
* @internal
|
||||
*/
|
||||
#define U8_COUNT_TRAIL_BYTES(leadByte) \
|
||||
((unsigned char)(leadByte)<0xf0 ? \
|
||||
((unsigned char)(leadByte)>=0xc0)+((unsigned char)(leadByte)>=0xe0) : \
|
||||
(unsigned char)(leadByte)<0xfe ? 3+((unsigned char)(leadByte)>=0xf8)+((unsigned char)(leadByte)>=0xfc) : 0)
|
||||
((uint8_t)(leadByte)<0xf0 ? \
|
||||
((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \
|
||||
(uint8_t)(leadByte)<0xfe ? 3+((uint8_t)(leadByte)>=0xf8)+((uint8_t)(leadByte)>=0xfc) : 0)
|
||||
|
||||
/**
|
||||
* Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence.
|
||||
|
|
Loading…
Add table
Reference in a new issue