summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-18 08:52:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-18 08:52:34 +0200
commit7df7c40a5d5eaed89fb89445348c3c7cdc8632e9 (patch)
tree49633cc6d74f4f46bb1cd9057570c6b34baa64db /spline
parent39acca95501fa7b0d77f8e6d2cbf97f45cff4ebf (diff)
many: use std::f{max,min} for floating-point values
Diffstat (limited to 'spline')
-rw-r--r--spline/spline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index 2db23c14..0f606173 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -111,7 +111,7 @@ float spline::get_value_no_save_internal(double x)
QMutexLocker foo(&_mutex);
if (max_x > 0)
- x = std::min(max_x, x);
+ x = std::fmin(max_x, x);
float q = float(x * precision(s->points));
int xi = (int)q;