summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-14 09:51:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-14 09:51:37 +0200
commit246b75c7e991cca65188608ab432f17571e28783 (patch)
treed835d0096730ee4f9f3b9122d77f47f8f34ca20d
parentbce2db487b6beab0bcc7a6a5f16c2665670a89a9 (diff)
spline-widget: use integer constant in float ops
-rw-r--r--spline-widget/functionconfig.cpp2
1 files changed, 1 insertions, 1 deletions
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;