diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-10 00:11:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-10 00:11:40 +0100 |
| commit | 9bced5ab9be5f35c42627d4635c8e500cb5090fa (patch) | |
| tree | b75cccaf998a3f130ae83a41811132c753af39af /test/test.cc | |
| parent | 990c16a56a6d2dbe37f49f019ed13bc0ff2ae4db (diff) | |
Fix warnings.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
