From f6837f333b1a540a0b152e5f080ff70cdacfe101 Mon Sep 17 00:00:00 2001 From: Hugo van der Merwe <17109322+hugovdm@users.noreply.github.com> Date: Mon, 11 May 2020 19:12:41 +0200 Subject: [PATCH] Attempt to disambiguate 'abs', for MacOSX build failure. --- icu4c/source/test/intltest/unitstest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/unitstest.cpp b/icu4c/source/test/intltest/unitstest.cpp index 0d80b928a37..9971793051c 100644 --- a/icu4c/source/test/intltest/unitstest.cpp +++ b/icu4c/source/test/intltest/unitstest.cpp @@ -194,7 +194,7 @@ void UnitsTest::testTemperature() { assertEquals(UnicodeString("testTemperature: ") + testCase.source + " to " + testCase.target, testCase.expectedValue, converter.convert(testCase.inputValue), - 0.0001 * abs(testCase.expectedValue)); + 0.0001 * abs((double)testCase.expectedValue)); } } -- 2.40.0