mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-4707 Fix some compiler warnings
X-SVN-Rev: 19354
This commit is contained in:
parent
a62c62531f
commit
13eed03890
1 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue