From 473aaae3080d859c22c640bbb903249f4fe007b7 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 28 Sep 2020 23:45:07 +0200 Subject: Make clang++ 9.0 happy (no warnings) --- include/cppunit/cppunit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/cppunit') diff --git a/include/cppunit/cppunit.h b/include/cppunit/cppunit.h index fb1c9ecf..09c60fb4 100644 --- a/include/cppunit/cppunit.h +++ b/include/cppunit/cppunit.h @@ -100,7 +100,7 @@ template<> void Cppunit::checkDelta(cs m, float a, float b, float epsilon } template<> void Cppunit::checkDelta(cs m, double a, double b, double epsilon, cs stra, cs strb, cs file, int line, cs func) { - checks++; if ( fabsf( a - b ) < epsilon ) { std::cout << "."; return; } + checks++; if ( fabs( a - b ) < epsilon ) { std::cout << "."; return; } fails++; std::cout << "F"; fail_hdr(stra, strb, file, line, func); serr << " Error: " << m << ": \"" << a << "\" ! = \"" << b << "\" (epsilon " << epsilon << ")" << std::endl << std::endl; } -- cgit v1.2.3