ICU-3222 Fix some compiler warnings

X-SVN-Rev: 14234
This commit is contained in:
George Rhoten 2004-01-04 23:14:37 +00:00
parent 5df6b28c9e
commit c8ec24948e
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ U_CAPI int32_t U_EXPORT2
u_getPropertyValueEnum(UProperty property, u_getPropertyValueEnum(UProperty property,
const char* alias) { const char* alias) {
return load() ? PNAME->getPropertyValueEnum(property, alias) return load() ? PNAME->getPropertyValueEnum(property, alias)
: UCHAR_INVALID_CODE; : (int32_t)UCHAR_INVALID_CODE;
} }
/* data swapping ------------------------------------------------------------ */ /* data swapping ------------------------------------------------------------ */

View File

@ -762,7 +762,7 @@ utf8IteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin)
iter->index=iter->length; /* may or may not be <0 (unknown) */ iter->index=iter->length; /* may or may not be <0 (unknown) */
iter->start=iter->limit; iter->start=iter->limit;
iter->reservedField=0; iter->reservedField=0;
return iter->index>=0 ? iter->index : UITER_UNKNOWN_INDEX; return iter->index>=0 ? iter->index : (int32_t)UITER_UNKNOWN_INDEX;
} }
} }