From a19a3a0f7aec81f785667f88e049082a23ae293a Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 30 Nov 2016 20:33:41 +0000 Subject: [PATCH] ICU-12868 Fixed invalid if condition in the recent fix in locmap.c X-SVN-Rev: 39517 --- icu4c/source/common/locmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/locmap.c b/icu4c/source/common/locmap.c index c03cd5cf969..1e28bd7886a 100644 --- a/icu4c/source/common/locmap.c +++ b/icu4c/source/common/locmap.c @@ -1022,7 +1022,7 @@ uprv_convertToPosix(uint32_t hostid, char *posixID, int32_t posixIDCapacity, UEr // GetLocaleInfo() maps such LCID to "ku". However, CLDR uses "ku" for // Northern Kurdish and "ckb" for Central Kurdish. For this reason, we cannot // use the Windows API to resolve locale ID for this specific case. - if (hostid & 0x3FF != 0x92) { + if ((hostid & 0x3FF) != 0x92) { int32_t tmpLen = 0; char locName[157]; /* ULOC_FULLNAME_CAPACITY */ -- 2.40.0