ICU-535 Fixed some compiler warnings

X-SVN-Rev: 3601
This commit is contained in:
George Rhoten 2001-02-10 02:16:19 +00:00
parent 05adc3b81c
commit a69e1906a8
2 changed files with 7 additions and 2 deletions

View file

@ -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;

View file

@ -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) {