From: Shane Carr Date: Fri, 7 Sep 2018 19:15:20 +0000 (-0700) Subject: ICU-11276 One more attempt at fixing test failure. X-Git-Tag: release-63-rc~63^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af091cc15ad7870620fa792c338efb35fb108402;p=icu ICU-11276 One more attempt at fixing test failure. --- diff --git a/icu4c/source/i18n/number_decimalquantity.cpp b/icu4c/source/i18n/number_decimalquantity.cpp index 3e1963d97e5..2c4182b1c6e 100644 --- a/icu4c/source/i18n/number_decimalquantity.cpp +++ b/icu4c/source/i18n/number_decimalquantity.cpp @@ -1161,7 +1161,8 @@ bool DecimalQuantity::operator==(const DecimalQuantity& other) const { && lOptPos == other.lOptPos && lReqPos == other.lReqPos && rReqPos == other.rReqPos - && rOptPos == other.rOptPos; + && rOptPos == other.rOptPos + && isApproximate == other.isApproximate; if (!basicEquals) { return false; } diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java index 351a341cbca..22b13b4f6e3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java @@ -1034,7 +1034,8 @@ public abstract class DecimalQuantity_AbstractBCD implements DecimalQuantity { && lOptPos == _other.lOptPos && lReqPos == _other.lReqPos && rReqPos == _other.rReqPos - && rOptPos == _other.rOptPos; + && rOptPos == _other.rOptPos + && isApproximate == _other.isApproximate; if (!basicEquals) { return false; }