From 246b75c7e991cca65188608ab432f17571e28783 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 14 May 2016 09:51:37 +0200 Subject: spline-widget: use integer constant in float ops --- spline-widget/functionconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spline-widget/functionconfig.cpp') diff --git a/spline-widget/functionconfig.cpp b/spline-widget/functionconfig.cpp index 9807eac4..0491f792 100644 --- a/spline-widget/functionconfig.cpp +++ b/spline-widget/functionconfig.cpp @@ -122,7 +122,7 @@ void Map::reload() { const int x = .5f * ((2 * p1_x) + (-p0_x + p2_x) * t + - (2 * p0_x - 5 * p1_x + 4.f * p2_x - p3_x) * t2 + + (2 * p0_x - 5 * p1_x + 4 * p2_x - p3_x) * t2 + (-p0_x + 3 * p1_x - 3 * p2_x + p3_x) * t3) * mult; -- cgit v1.2.3