From cc80e372b35047e3c92acd1fd228de74dab3c7fb Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 8 Dec 2014 10:22:11 +1100 Subject: Avoid warnings from clang about calling abs with float arguments. --- src/Editor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 0fba257be..4902dbdc8 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -8,10 +8,10 @@ #include #include #include -#include #include #include +#include #include #include #include @@ -3787,9 +3787,9 @@ void Editor::GoToLine(int lineNo) { } static bool Close(Point pt1, Point pt2, Point threshold) { - if (abs(pt1.x - pt2.x) > threshold.x) + if (std::abs(pt1.x - pt2.x) > threshold.x) return false; - if (abs(pt1.y - pt2.y) > threshold.y) + if (std::abs(pt1.y - pt2.y) > threshold.y) return false; return true; } -- cgit v1.2.3