]> granicus.if.org Git - icu/commitdiff
ICU-12868 Fixed invalid if condition in the recent fix in locmap.c
authorYoshito Umaoka <y.umaoka@gmail.com>
Wed, 30 Nov 2016 20:33:41 +0000 (20:33 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Wed, 30 Nov 2016 20:33:41 +0000 (20:33 +0000)
X-SVN-Rev: 39517

icu4c/source/common/locmap.c

index c03cd5cf969507ea51c7d5113a1293c98437045f..1e28bd7886a2c31a3d0909da723384c6396bfb1e 100644 (file)
@@ -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 */