]> granicus.if.org Git - taglib/commitdiff
Suppress some warnings in test.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 27 Oct 2016 06:23:24 +0000 (15:23 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 27 Oct 2016 06:23:24 +0000 (15:23 +0900)
tests/test_bytevector.cpp

index 12393b5004c495a8fac23e0db1fb976b6e011165..1e063b71810b2d299aba275c6f2e999990a7b3fd 100644 (file)
@@ -223,26 +223,26 @@ public:
     const double Tolerance = 1.0e-7;
 
     const ByteVector pi32le("\xdb\x0f\x49\x40", 4);
-    CPPUNIT_ASSERT(::abs(pi32le.toFloat32LE(0) - M_PI) < Tolerance);
+    CPPUNIT_ASSERT(std::abs(pi32le.toFloat32LE(0) - M_PI) < Tolerance);
     CPPUNIT_ASSERT_EQUAL(pi32le, ByteVector::fromFloat32LE(pi32le.toFloat32LE(0)));
 
     const ByteVector pi32be("\x40\x49\x0f\xdb", 4);
-    CPPUNIT_ASSERT(::abs(pi32be.toFloat32BE(0) - M_PI) < Tolerance);
+    CPPUNIT_ASSERT(std::abs(pi32be.toFloat32BE(0) - M_PI) < Tolerance);
     CPPUNIT_ASSERT_EQUAL(pi32be, ByteVector::fromFloat32BE(pi32be.toFloat32BE(0)));
 
     const ByteVector pi64le("\x18\x2d\x44\x54\xfb\x21\x09\x40", 8);
-    CPPUNIT_ASSERT(::abs(pi64le.toFloat64LE(0) - M_PI) < Tolerance);
+    CPPUNIT_ASSERT(std::abs(pi64le.toFloat64LE(0) - M_PI) < Tolerance);
     CPPUNIT_ASSERT_EQUAL(pi64le, ByteVector::fromFloat64LE(pi64le.toFloat64LE(0)));
 
     const ByteVector pi64be("\x40\x09\x21\xfb\x54\x44\x2d\x18", 8);
-    CPPUNIT_ASSERT(::abs(pi64be.toFloat64BE(0) - M_PI) < Tolerance);
+    CPPUNIT_ASSERT(std::abs(pi64be.toFloat64BE(0) - M_PI) < Tolerance);
     CPPUNIT_ASSERT_EQUAL(pi64be, ByteVector::fromFloat64BE(pi64be.toFloat64BE(0)));
 
     const ByteVector pi80le("\x00\xc0\x68\x21\xa2\xda\x0f\xc9\x00\x40", 10);
-    CPPUNIT_ASSERT(::abs(pi80le.toFloat80LE(0) - M_PI) < Tolerance);
+    CPPUNIT_ASSERT(std::abs(pi80le.toFloat80LE(0) - M_PI) < Tolerance);
 
     const ByteVector pi80be("\x40\x00\xc9\x0f\xda\xa2\x21\x68\xc0\x00", 10);
-    CPPUNIT_ASSERT(::abs(pi80be.toFloat80BE(0) - M_PI) < Tolerance);
+    CPPUNIT_ASSERT(std::abs(pi80be.toFloat80BE(0) - M_PI) < Tolerance);
   }
 
   void testReplace()