From 7df7c40a5d5eaed89fb89445348c3c7cdc8632e9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 18 Apr 2017 08:52:34 +0200 Subject: many: use std::f{max,min} for floating-point values --- spline/spline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spline') 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; -- cgit v1.2.3