diff --git a/icu4c/source/i18n/ucoleitr.cpp b/icu4c/source/i18n/ucoleitr.cpp index f386fb4ef71..4088bd1b470 100644 --- a/icu4c/source/i18n/ucoleitr.cpp +++ b/icu4c/source/i18n/ucoleitr.cpp @@ -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;