diff options
author | Samuel Fadel <samuel@nihil.ws> | 2018-08-08 16:56:47 -0300 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2018-08-08 16:56:47 -0300 |
commit | 9963dd0a9816f1ee58b84a2589cfcb9b4f574f68 (patch) | |
tree | 42a0cbc0c3b2345ff3b83bb72ed1d859df185f01 /src/main.cpp | |
parent | f78a92ef747c9c476d41d8093711405783941947 (diff) |
Fixed bug with using abs().
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
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; |