From 9963dd0a9816f1ee58b84a2589cfcb9b4f574f68 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 8 Aug 2018 16:56:47 -0300 Subject: Fixed bug with using abs(). --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 446e456..5972b4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ void sparkify(InputIterator first, InputIterator last, OutputIterator &out) { max = *minmax.second; auto values_range = max - min; - if (abs(values_range) < EPSILON) { + if (values_range < EPSILON) { std::fill_n(out, last - first, TICKS[0]); } else { auto coef = (NUM_TICKS - 1) / values_range; -- cgit v1.2.3