diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 12:33:55 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 12:34:58 +0100 |
commit | 8e04a08869cfec0f0473137e580b8571f793da14 (patch) | |
tree | 3d47ec730f5624b44938b228955d06fc283fe079 /spline | |
parent | 364c1ecd8703dadaaa9c7479335e469b153a1be0 (diff) |
fix -Wall -Wextra -Wpedantic
Diffstat (limited to 'spline')
-rw-r--r-- | spline/spline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index 2fe73a01..b6fdd9c5 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -188,8 +188,8 @@ void spline::update_interp_data() { const double x = points[0].x(); const double y = points[0].y(); - const int max = clamp(iround(x * c), 1, value_count-1); - for (int k = 0; k <= max; k++) + const unsigned max = (unsigned)clamp(iround(x * c), 1, value_count-1); + for (unsigned k = 0; k <= max; k++) { if (k < value_count) data[unsigned(k)] = float(y * k / max); |