diff options
author | Neil <nyamatongwe@gmail.com> | 2014-12-08 10:22:11 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-12-08 10:22:11 +1100 |
commit | cc80e372b35047e3c92acd1fd228de74dab3c7fb (patch) | |
tree | 8ef6e2a0cf7cdbb2147f3798194a03d2de3024e0 /src | |
parent | b935ffff12acdef1aeefeb056680f00d28f0d594 (diff) | |
download | scintilla-mirror-cc80e372b35047e3c92acd1fd228de74dab3c7fb.tar.gz |
Avoid warnings from clang about calling abs with float arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 6 |
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; } |