ICU-10273 fix compilation failure on some platforms, also reorder zero-initializers to avoid warning
X-SVN-Rev: 34282
This commit is contained in:
parent
fd0e17c682
commit
e059ab24ef
@ -1120,11 +1120,11 @@ DecimalFormat::getFixedDecimal(DigitList &number, UErrorCode &status) const {
|
||||
// More than 18 digits integer digits, but the least significant 18 are all zero.
|
||||
// We don't want to return zero as the int part, but want to keep zeros
|
||||
// for several of the least significant digits.
|
||||
result.intValue = 100000000000000000;
|
||||
result.intValue = 100000000000000000LL;
|
||||
}
|
||||
|
||||
// Fraction digits.
|
||||
result.visibleDecimalDigitCount = result.decimalDigits = result.decimalDigitsWithoutTrailingZeros = 0;
|
||||
result.decimalDigits = result.decimalDigitsWithoutTrailingZeros = result.visibleDecimalDigitCount = 0;
|
||||
for (di = number.getDecimalAt(); di < number.getCount(); di++) {
|
||||
result.visibleDecimalDigitCount++;
|
||||
if (result.decimalDigits < 100000000000000000LL) {
|
||||
|
Loading…
Reference in New Issue
Block a user