]> granicus.if.org Git - icu/commitdiff
ICU-9567 Fixed a bad condition for Latin 1 checking updated in the previous change.
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 11 Oct 2012 18:10:04 +0000 (18:10 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 11 Oct 2012 18:10:04 +0000 (18:10 +0000)
X-SVN-Rev: 32599

icu4c/source/i18n/ucol.cpp

index ffe756ae2419055403468c736615fcd051fde1a0..b13c8747342ef4aad5b2ce787c356dc2b80475b6 100644 (file)
@@ -9034,8 +9034,8 @@ ucol_strcollUTF8(
         }
     } else {
         // Lead byte of Latin 1 character is 0x00 - 0xC3
-        bSawNonLatin1 = (source && (sourceLength != 0) && ((uint8_t)*source > 0xc3 && *source < 0));
-        bSawNonLatin1 |= (target && (targetLength != 0) && ((uint8_t)*target > 0xc3 && *target < 0));
+        bSawNonLatin1 = (source && (sourceLength != 0) && (uint8_t)*source > 0xc3);
+        bSawNonLatin1 |= (target && (targetLength != 0) && (uint8_t)*target > 0xc3);
     }
 
     UCollationResult returnVal;