From: Steven R. Loomis Date: Tue, 24 Oct 2017 22:39:03 +0000 (+0000) Subject: ICU-13415 porting: std::isinf/std::isnan back to uprv. also see ICU-13315 X-Git-Tag: release-61-rc~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e63d2297eeddb9efc302049186c6e56c781c42e;p=icu ICU-13415 porting: std::isinf/std::isnan back to uprv. also see ICU-13315 X-SVN-Rev: 40629 --- diff --git a/icu4c/source/test/intltest/numfmtst.cpp b/icu4c/source/test/intltest/numfmtst.cpp index 41056641662..fc562f385ac 100644 --- a/icu4c/source/test/intltest/numfmtst.cpp +++ b/icu4c/source/test/intltest/numfmtst.cpp @@ -425,19 +425,19 @@ UBool NumberFormatTestDataDriven::isParsePass( return TRUE; // TRUE because failure handling is in the test suite } if (tuple.output == "NaN") { - if (!std::isnan(result.getDouble())) { + if (!uprv_isNaN(result.getDouble())) { appendErrorMessage.append("Expected NaN, but got: " + resultStr); return FALSE; } return TRUE; } else if (tuple.output == "Inf") { - if (!std::isinf(result.getDouble()) || result.getDouble() < 0) { + if (!uprv_isInfinite(result.getDouble()) || result.getDouble() < 0) { appendErrorMessage.append("Expected Inf, but got: " + resultStr); return FALSE; } return TRUE; } else if (tuple.output == "-Inf") { - if (!std::isinf(result.getDouble()) || result.getDouble() > 0) { + if (!uprv_isInfinite(result.getDouble()) || result.getDouble() > 0) { appendErrorMessage.append("Expected -Inf, but got: " + resultStr); return FALSE; }