mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
ICU-20081 ucase_swap() fix version range check (#151)
This commit is contained in:
parent
c3f576710b
commit
e22adb02d2
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ ucase_swap(const UDataSwapper *ds,
|
|||
((pInfo->formatVersion[0]==1 &&
|
||||
pInfo->formatVersion[2]==UTRIE_SHIFT &&
|
||||
pInfo->formatVersion[3]==UTRIE_INDEX_SHIFT) ||
|
||||
2<=pInfo->formatVersion[0] || pInfo->formatVersion[0]<=4)
|
||||
2<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=4)
|
||||
)) {
|
||||
udata_printError(ds, "ucase_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not recognized as case mapping data\n",
|
||||
pInfo->dataFormat[0], pInfo->dataFormat[1],
|
||||
|
|
Loading…
Add table
Reference in a new issue