mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-535 Fixed some compiler warnings
X-SVN-Rev: 3601
This commit is contained in:
parent
05adc3b81c
commit
a69e1906a8
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue