summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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;