From 9bced5ab9be5f35c42627d4635c8e500cb5090fa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 Jun 2015 00:11:40 +0100 Subject: Fix warnings. --- test/test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test.cc') diff --git a/test/test.cc b/test/test.cc index 5dd591ddc..0636c6e48 100644 --- a/test/test.cc +++ b/test/test.cc @@ -46,6 +46,7 @@ using std::min; using std::cout; using std::cerr; using std::list; +using std::abs; using boost::shared_ptr; using boost::scoped_array; @@ -143,7 +144,7 @@ check_audio_file (boost::filesystem::path ref, boost::filesystem::path check) BOOST_CHECK_EQUAL (r, this_time); for (sf_count_t i = 0; i < this_time; ++i) { - BOOST_REQUIRE (fabs (ref_buffer[i] - check_buffer[i]) <= 65536); + BOOST_REQUIRE (abs (ref_buffer[i] - check_buffer[i]) <= 65536); } N -= this_time; -- cgit v1.2.3