From c8ec24948e9d2fa5a4de12ab48428d49e132ae03 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sun, 4 Jan 2004 23:14:37 +0000 Subject: [PATCH] ICU-3222 Fix some compiler warnings X-SVN-Rev: 14234 --- icu4c/source/common/propname.cpp | 2 +- icu4c/source/common/uiter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/propname.cpp b/icu4c/source/common/propname.cpp index dbd19dd8e6..3f26e18bf8 100644 --- a/icu4c/source/common/propname.cpp +++ b/icu4c/source/common/propname.cpp @@ -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 ------------------------------------------------------------ */ diff --git a/icu4c/source/common/uiter.cpp b/icu4c/source/common/uiter.cpp index 626b425844..7728cd21a9 100644 --- a/icu4c/source/common/uiter.cpp +++ b/icu4c/source/common/uiter.cpp @@ -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; } }