diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-30 21:45:51 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-30 21:45:51 +0000 |
commit | 5cbeb59475d2d25a86ac936e47c99be86e0a3183 (patch) | |
tree | b84cfa6aa252b33d133ceb0922061367ca5ac637 /icu4c/source/i18n/number_integerwidth.cpp | |
parent | eb3451793aaf42870e44281708ccac51c010e837 (diff) | |
parent | 627758a905bdac685d065ed3de08e628b03b70b4 (diff) | |
download | icu-5cbeb59475d2d25a86ac936e47c99be86e0a3183.tar.gz |
Snap for 11784721 from 627758a905bdac685d065ed3de08e628b03b70b4 to build-tools-release
Change-Id: I48be0d30274e0df643635f86bc40c5a9de1e52ad
Diffstat (limited to 'icu4c/source/i18n/number_integerwidth.cpp')
-rw-r--r-- | icu4c/source/i18n/number_integerwidth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/icu4c/source/i18n/number_integerwidth.cpp b/icu4c/source/i18n/number_integerwidth.cpp index 10b853423..a0fc2b192 100644 --- a/icu4c/source/i18n/number_integerwidth.cpp +++ b/icu4c/source/i18n/number_integerwidth.cpp @@ -46,14 +46,14 @@ void IntegerWidth::apply(impl::DecimalQuantity& quantity, UErrorCode& status) co if (fHasError) { status = U_ILLEGAL_ARGUMENT_ERROR; } else if (fUnion.minMaxInt.fMaxInt == -1) { - quantity.setMinInteger(fUnion.minMaxInt.fMinInt); + quantity.increaseMinIntegerTo(fUnion.minMaxInt.fMinInt); } else { // Enforce the backwards-compatibility feature "FormatFailIfMoreThanMaxDigits" if (fUnion.minMaxInt.fFormatFailIfMoreThanMaxDigits && fUnion.minMaxInt.fMaxInt < quantity.getMagnitude()) { status = U_ILLEGAL_ARGUMENT_ERROR; } - quantity.setMinInteger(fUnion.minMaxInt.fMinInt); + quantity.increaseMinIntegerTo(fUnion.minMaxInt.fMinInt); quantity.applyMaxInteger(fUnion.minMaxInt.fMaxInt); } } |