]> granicus.if.org Git - icu/commitdiff
ICU-11276 Fixing ASAN issue related to number range formatting.
authorShane Carr <shane@unicode.org>
Thu, 6 Sep 2018 09:03:52 +0000 (02:03 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:40 +0000 (14:27 -0700)
icu4c/source/i18n/number_decimalquantity.cpp

index 760914e26f82784f297089b24f4e19ffef5d51ff..9d80e3349cb8aa19e398f7ecb47e2a54152741c8 100644 (file)
@@ -1155,7 +1155,7 @@ const char16_t* DecimalQuantity::checkHealth() const {
 
 bool DecimalQuantity::operator==(const DecimalQuantity& other) const {
     // FIXME: Make a faster implementation.
-    return toScientificString() == other.toScientificString();
+    return toString() == other.toString();
 }
 
 UnicodeString DecimalQuantity::toString() const {