diff options
Diffstat (limited to 'qfunctionconfigurator/functionconfig.cpp')
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 2 |
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); |