summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--qfunctionconfigurator/functionconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index a0715754..4f808c80 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -45,7 +45,7 @@ float Map::getValueInternal(int x) {
if (sz == 0)
ret = 0;
else
- ret = cur.data[std::max(std::min(x, sz-1), 0)];
+ ret = cur.data[std::min<unsigned>(x, sz-1)];
return ret * sign;
}