summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-03-20 03:45:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-03-20 03:45:39 +0100
commitd53ef58b1f043a8f356a1ed1d8c713d202e92cae (patch)
tree158c7007514f3234d7962f3d41395928b81a6dbf
parent6bc07bf321fb946fdc8e620d5565ca8070acf149 (diff)
qfc: use floats consistently
-rw-r--r--qfunctionconfigurator/functionconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index e4a7e283..70393246 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -24,7 +24,7 @@ Map::Map() :
float Map::getValue(float x) {
QMutexLocker foo(&_mutex);
- double q = x * (double) MEMOIZE_PRECISION;
+ float q = x * MEMOIZE_PRECISION;
int xi = (int)q;
float yi = getValueInternal(xi);
float yiplus1 = getValueInternal(xi+1);