]> granicus.if.org Git - icu/commitdiff
ICU-11276 One more attempt at fixing test failure.
authorShane Carr <shane@unicode.org>
Fri, 7 Sep 2018 19:15:20 +0000 (12:15 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:40 +0000 (14:27 -0700)
icu4c/source/i18n/number_decimalquantity.cpp
icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java

index 3e1963d97e592ebb24467e7593cc40827fb38498..2c4182b1c6ecdac30056eafd8f5892235e31a2ad 100644 (file)
@@ -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;
     }
index 351a341cbcadd71fc064a1636db24823fc3db126..22b13b4f6e3c60c7178597c1aa7fe3cc285b59e5 100644 (file)
@@ -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;
         }