diff options
Diffstat (limited to 'sc/qa/unit/helper/qahelper.cxx')
-rw-r--r-- | sc/qa/unit/helper/qahelper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index 2ba82ae91944..c481260378c7 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -39,6 +39,7 @@ #include <orcus/csv_parser.hpp> +#include <cstdlib> #include <fstream> #include <com/sun/star/chart2/XChartDocument.hpp> @@ -99,7 +100,7 @@ const FileFormat ScBootstrapFixture::aFileFormats[] = { bool testEqualsWithTolerance( tools::Long nVal1, tools::Long nVal2, tools::Long nTol ) { - return ( labs( nVal1 - nVal2 ) <= nTol ); + return ( std::abs( nVal1 - nVal2 ) <= nTol ); } void loadFile(const OUString& aFileName, std::string& aContent) |