ICU-4288 Fix some compiler warnings.

X-SVN-Rev: 17303
This commit is contained in:
George Rhoten 2005-03-09 05:45:01 +00:00
parent 6fb21fed8a
commit cdf4eef48c
4 changed files with 2 additions and 5 deletions

View file

@ -650,7 +650,7 @@ UBool RuleBasedBreakIterator::isBoundary(int32_t offset) {
* @return The current iteration position.
*/
int32_t RuleBasedBreakIterator::current(void) const {
return (fText != NULL) ? fText->getIndex() : BreakIterator::DONE;
return (fText != NULL) ? fText->getIndex() : (int32_t)BreakIterator::DONE;
}
//=======================================================================

View file

@ -258,7 +258,6 @@ ubidi_getDummy(UErrorCode *pErrorCode) {
return bdp;
} else /* bdp==NULL */ {
/* create the dummy object */
UBiDiProps *bdp;
int32_t *indexes;
bdp=(UBiDiProps *)uprv_malloc(sizeof(UBiDiProps)+UBIDI_IX_TOP*4+UTRIE_DUMMY_SIZE);

View file

@ -262,7 +262,6 @@ ucase_getDummy(UErrorCode *pErrorCode) {
return csp;
} else /* csp==NULL */ {
/* create the dummy object */
UCaseProps *csp;
int32_t *indexes;
csp=(UCaseProps *)uprv_malloc(sizeof(UCaseProps)+UCASE_IX_TOP*4+UTRIE_DUMMY_SIZE);

View file

@ -1547,11 +1547,10 @@ U_NAMESPACE_END
U_CAPI int32_t
utrans_stripRules(const UChar *source, int32_t sourceLen, UChar *target, UErrorCode *status) {
const UChar *sourceStart = source;
//const UChar *sourceStart = source;
const UChar *targetStart = target;
const UChar *sourceLimit = source+sourceLen;
UChar *targetLimit = target+sourceLen;
uint32_t isError = 0;
UChar32 c = 0;
UBool quoted = FALSE;
int32_t index;