summaryrefslogtreecommitdiff
path: root/user/analitza/pmmx-test-failure.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/analitza/pmmx-test-failure.patch')
-rw-r--r--user/analitza/pmmx-test-failure.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/analitza/pmmx-test-failure.patch b/user/analitza/pmmx-test-failure.patch
new file mode 100644
index 000000000..6e1bce2d4
--- /dev/null
+++ b/user/analitza/pmmx-test-failure.patch
@@ -0,0 +1,14 @@
+diff --git a/analitza/commands/listcommands.cpp b/analitza/commands/listcommands.cpp
+index b77f49a9..2885169a 100644
+--- a/analitza/commands/listcommands.cpp
++++ b/analitza/commands/listcommands.cpp
+@@ -69,8 +69,9 @@ Expression RangeCommand::operator()(const QList<Analitza::Expression >& args)
+
+ Analitza::List *seq = new Analitza::List;
+
+- for (double x = a; x <= b; x += h)
++ for (double x = a; x < b || qFuzzyCompare(x, b); x += h) {
+ seq->appendBranch(new Analitza::Cn(x));
++ }
+
+ ret.setTree(seq);