mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 20156
This commit is contained in:
parent
8a5f6873a0
commit
6e750cbb3b
2 changed files with 3 additions and 4 deletions
|
@ -859,10 +859,8 @@ static void TestJB581(void)
|
|||
/* Now, do the same comparison with keys */
|
||||
sourceKeyOut = ucol_getSortKey(myCollator, source, -1, sourceKeyArray, 100);
|
||||
targetKeyOut = ucol_getSortKey(myCollator, target, -1, targetKeyArray, 100);
|
||||
result = 0;
|
||||
bufferLen = ((targetKeyOut > 100) ? 100 : targetKeyOut);
|
||||
result = memcmp(sourceKeyArray, targetKeyArray, bufferLen);
|
||||
if (result != 0)
|
||||
if (memcmp(sourceKeyArray, targetKeyArray, bufferLen) != 0)
|
||||
{
|
||||
log_err("Comparing two strings with sort keys in C failed.\n");
|
||||
}
|
||||
|
|
|
@ -1650,7 +1650,8 @@ parseResourceType(UErrorCode *status)
|
|||
*status = U_ZERO_ERROR;
|
||||
|
||||
/* Search for normal types */
|
||||
for (result = RT_UNKNOWN+1; result < RT_RESERVED; result++) {
|
||||
result=RT_UNKNOWN;
|
||||
while (++result < RT_RESERVED) {
|
||||
if (u_strcmp(tokenValue->fChars, gResourceTypes[result].nameUChars) == 0) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue