From a69e1906a8517424409eb364082e72842f456cd8 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sat, 10 Feb 2001 02:16:19 +0000 Subject: [PATCH] ICU-535 Fixed some compiler warnings X-SVN-Rev: 3601 --- icu4c/source/i18n/decimfmt.cpp | 2 +- icu4c/source/i18n/unum.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index de9a0d92814..193ee50656b 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -1493,7 +1493,7 @@ void DecimalFormat::setRoundingIncrement(double newValue) { if (fRoundingIncrement == NULL) { fRoundingIncrement = new DigitList(); } - fRoundingIncrement->set((long)newValue); + fRoundingIncrement->set((int32_t)newValue); fRoundingDouble = newValue; } else { delete fRoundingIncrement; diff --git a/icu4c/source/i18n/unum.cpp b/icu4c/source/i18n/unum.cpp index 3069634693e..0815fa60ba0 100644 --- a/icu4c/source/i18n/unum.cpp +++ b/icu4c/source/i18n/unum.cpp @@ -26,7 +26,8 @@ unum_open( UNumberFormatStyle style, const char* locale, UErrorCode* status) { - if(U_FAILURE(*status)) return 0; + if(U_FAILURE(*status)) + return 0; UNumberFormat *retVal = 0; switch(style) { @@ -60,6 +61,10 @@ unum_open( UNumberFormatStyle style, //break; *status = U_UNSUPPORTED_ERROR; return 0; + + default: + *status = U_UNSUPPORTED_ERROR; + return 0; } if(retVal == 0) {