aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-12-08 10:22:11 +1100
committerNeil <nyamatongwe@gmail.com>2014-12-08 10:22:11 +1100
commit753c60558a0132567dee6d4f8afcac6e205cf7c5 (patch)
tree598df5a1c57d3e3dd27ba19b62510c0d5f6a2fbe /src
parentb3b442bc9cad7f89e7ed921dcaf302624a687bfb (diff)
downloadscintilla-mirror-753c60558a0132567dee6d4f8afcac6e205cf7c5.tar.gz
Avoid warnings from clang about calling abs with float arguments.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx6
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <math.h>
#include <assert.h>
#include <ctype.h>
+#include <cmath>
#include <stdexcept>
#include <string>
#include <vector>
@@ -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;
}