summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-12 18:38:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-14 18:14:46 +0200
commit611e74d2db22bf87291442e556808cbaa441c7be (patch)
tree9cdfb3c694f40c6a6807d6a03ce3fe81f7aa171a /spline-widget/functionconfig.cpp
parent21cb74711ad542d5c7ab08c27e8a5d82fd360002 (diff)
spline-widget: minor style fix
Diffstat (limited to 'spline-widget/functionconfig.cpp')
-rw-r--r--spline-widget/functionconfig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/spline-widget/functionconfig.cpp b/spline-widget/functionconfig.cpp
index 8b74b518..e66a6812 100644
--- a/spline-widget/functionconfig.cpp
+++ b/spline-widget/functionconfig.cpp
@@ -100,11 +100,11 @@ float Map::getValueInternal(int x)
float sign = x < 0 ? -1 : 1;
x = abs(x);
float ret;
- int sz = cur.data.size();
+ unsigned sz = cur.data.size();
if (sz == 0)
ret = 0;
else
- ret = cur.data[std::min<unsigned>(x, sz-1)];
+ ret = cur.data[std::min(unsigned(x), sz-1u)];
return ret * sign;
}