ICU-3222 Fix some compiler warnings
X-SVN-Rev: 14234
This commit is contained in:
parent
5df6b28c9e
commit
c8ec24948e
@ -196,7 +196,7 @@ U_CAPI int32_t U_EXPORT2
|
||||
u_getPropertyValueEnum(UProperty property,
|
||||
const char* alias) {
|
||||
return load() ? PNAME->getPropertyValueEnum(property, alias)
|
||||
: UCHAR_INVALID_CODE;
|
||||
: (int32_t)UCHAR_INVALID_CODE;
|
||||
}
|
||||
|
||||
/* data swapping ------------------------------------------------------------ */
|
||||
|
@ -762,7 +762,7 @@ utf8IteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin)
|
||||
iter->index=iter->length; /* may or may not be <0 (unknown) */
|
||||
iter->start=iter->limit;
|
||||
iter->reservedField=0;
|
||||
return iter->index>=0 ? iter->index : UITER_UNKNOWN_INDEX;
|
||||
return iter->index>=0 ? iter->index : (int32_t)UITER_UNKNOWN_INDEX;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user