]> granicus.if.org Git - icu/commitdiff
ICU-13725 Fixing ambiguous assertEquals call on Linux.
authorShane Carr <shane@unicode.org>
Wed, 25 Apr 2018 01:27:38 +0000 (01:27 +0000)
committerShane Carr <shane@unicode.org>
Wed, 25 Apr 2018 01:27:38 +0000 (01:27 +0000)
X-SVN-Rev: 41273

icu4c/source/test/intltest/numbertest_decimalquantity.cpp

index cb34e2605cc6c4269f965cb42556413afb0501e8..cd62ac7ee9bd20f77b2f01f1f3d35b9ff5f48e1a 100644 (file)
@@ -367,7 +367,7 @@ void DecimalQuantityTest::testMaxDigits() {
     assertEquals("Should trim, toPlainString", "76.54", dq.toPlainString());
     assertEquals("Should trim, toScientificString", "7.654E+1", dq.toScientificString());
     assertEquals("Should trim, toLong", 76LL, dq.toLong(true));
-    assertEquals("Should trim, toFractionLong", 54LL, dq.toFractionLong(false));
+    assertEquals("Should trim, toFractionLong", (int64_t) 54, (int64_t) dq.toFractionLong(false));
     assertEquals("Should trim, toDouble", 76.54, dq.toDouble());
     // To test DecNum output, check the round-trip.
     DecNum dn;