ICU-4707 Fix some compiler warnings

X-SVN-Rev: 19354
This commit is contained in:
George Rhoten 2006-03-16 07:36:52 +00:00
parent a62c62531f
commit 13eed03890

View file

@ -1,6 +1,6 @@
/*
******************************************************************************
* Copyright (C) 2001-2003, International Business Machines
* Copyright (C) 2001-2006, International Business Machines
* Corporation and others. All Rights Reserved.
******************************************************************************
*
@ -115,15 +115,16 @@ U_CAPI int32_t U_EXPORT2
ucol_next(UCollationElements *elems,
UErrorCode *status)
{
uint32_t result;
int32_t result;
if (U_FAILURE(*status)) {
return UCOL_NULLORDER;
}
elems->reset_ = FALSE;
result = ucol_getNextCE(elems->iteratordata_.coll, &elems->iteratordata_,
status);
result = (int32_t)ucol_getNextCE(elems->iteratordata_.coll,
&elems->iteratordata_,
status);
if (result == UCOL_NO_MORE_CES) {
result = UCOL_NULLORDER;
@ -140,7 +141,7 @@ ucol_previous(UCollationElements *elems,
}
else
{
uint32_t result;
int32_t result;
if (elems->reset_ &&
(elems->iteratordata_.pos == elems->iteratordata_.string)) {
@ -155,8 +156,9 @@ ucol_previous(UCollationElements *elems,
elems->reset_ = FALSE;
result = ucol_getPrevCE(elems->iteratordata_.coll, &(elems->iteratordata_),
status);
result = (int32_t)ucol_getPrevCE(elems->iteratordata_.coll,
&(elems->iteratordata_),
status);
if (result == UCOL_NO_MORE_CES) {
result = UCOL_NULLORDER;