mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4985 Fix another problem with test in debug mode
X-SVN-Rev: 19610
This commit is contained in:
parent
7becf109fd
commit
eac56d17c4
1 changed files with 2 additions and 2 deletions
|
@ -1687,8 +1687,8 @@ void NumberFormatRegressionTest::Test4122840(void)
|
|||
// Get the currency (if there is one) so we can set the rounding and fraction
|
||||
const UChar *currency = fmt1->getCurrency();
|
||||
if (*currency != 0) {
|
||||
double rounding = ucurr_getRoundingIncrement(fmt1->getCurrency(), &status);
|
||||
int32_t frac = ucurr_getDefaultFractionDigits(fmt1->getCurrency(), &status);
|
||||
double rounding = ucurr_getRoundingIncrement(currency, &status);
|
||||
int32_t frac = ucurr_getDefaultFractionDigits(currency, &status);
|
||||
if (U_SUCCESS(status)) {
|
||||
fmt2->setRoundingIncrement(rounding);
|
||||
fmt2->setMinimumFractionDigits(frac);
|
||||
|
|
Loading…
Add table
Reference in a new issue