ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 20028
This commit is contained in:
parent
3b3554498c
commit
154f34dbf2
@ -1102,7 +1102,7 @@ swapBuffers:
|
||||
U_ASSERT(ix<=u8b->bufNativeLimit);
|
||||
mapIndex = ix - u8b->toUCharsMapStart;
|
||||
U_ASSERT(mapIndex>=0);
|
||||
U_ASSERT(mapIndex<sizeof(u8b->mapToUChars));
|
||||
U_ASSERT(mapIndex<(int32_t)sizeof(u8b->mapToUChars));
|
||||
ut->chunkOffset = u8b->mapToUChars[mapIndex] - u8b->bufStartIdx;
|
||||
|
||||
return TRUE;
|
||||
|
@ -1028,7 +1028,7 @@ ucurr_countCurrencyList(UEnumeration *enumerator, UErrorCode * /*pErrorCode*/) {
|
||||
static const char* U_CALLCONV
|
||||
ucurr_nextCurrencyList(UEnumeration *enumerator,
|
||||
int32_t* resultLength,
|
||||
UErrorCode *pErrorCode)
|
||||
UErrorCode * /*pErrorCode*/)
|
||||
{
|
||||
UCurrencyContext *myContext = (UCurrencyContext *)(enumerator->context);
|
||||
|
||||
|
@ -4048,7 +4048,7 @@ void RBBITest::RunMonkey(BreakIterator *bi, RBBIMonkeyKind &mk, const char *name
|
||||
|
||||
// Find the break positions using isBoundary() tests.
|
||||
memset(isBoundaryBreaks, 0, sizeof(isBoundaryBreaks));
|
||||
U_ASSERT(sizeof(isBoundaryBreaks) > testText.length());
|
||||
U_ASSERT((int32_t)sizeof(isBoundaryBreaks) > testText.length());
|
||||
for (i=0; i<=testText.length(); i++) {
|
||||
isBoundaryBreaks[i] = bi->isBoundary(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user