summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qfunctionconfigurator/functionconfig.cpp')
-rw-r--r--[-rwxr-xr-x]qfunctionconfigurator/functionconfig.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index c97aec16..8301c7f9 100755..100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -120,6 +120,7 @@ void Map::reload() {
const n t2 = t*t;
const n t3 = t*t*t;
+ // XXX we could solve for t instead -sh 20150811
const int x = .5 * ((2. * p1_x) +
(-p0_x + p2_x) * t +
(2. * p0_x - 5. * p1_x + 4. * p2_x - p3_x) * t2 +
@@ -140,7 +141,7 @@ void Map::reload() {
}
}
- num last = 0;
+ integral last = 0;
for (int i = 0; i < sz; i++)
{
if (data[i] == integral_max)