diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-14 09:51:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-14 09:51:37 +0200 |
commit | 246b75c7e991cca65188608ab432f17571e28783 (patch) | |
tree | d835d0096730ee4f9f3b9122d77f47f8f34ca20d /spline-widget/functionconfig.cpp | |
parent | bce2db487b6beab0bcc7a6a5f16c2665670a89a9 (diff) |
spline-widget: use integer constant in float ops
Diffstat (limited to 'spline-widget/functionconfig.cpp')
-rw-r--r-- | spline-widget/functionconfig.cpp | 2 |
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; |