ICU-4707 Fix some compiler warnings.

X-SVN-Rev: 20156
This commit is contained in:
George Rhoten 2006-08-24 21:03:52 +00:00
parent 8a5f6873a0
commit 6e750cbb3b
2 changed files with 3 additions and 4 deletions

View file

@ -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");
}

View file

@ -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;
}