diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-01 19:38:46 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-01 19:38:46 -0500 |
commit | 8837d76332650f30a9a763c02223941ae49bf37e (patch) | |
tree | 099c75e5fd02b2e1ba487d9ad5bb06ea54f2613a /user/analitza/pmmx-test-failure.patch | |
parent | 1b708c8a90e3548c4954c6367a9376f76f3746bd (diff) | |
download | packages-8837d76332650f30a9a763c02223941ae49bf37e.tar.gz packages-8837d76332650f30a9a763c02223941ae49bf37e.tar.bz2 packages-8837d76332650f30a9a763c02223941ae49bf37e.tar.xz packages-8837d76332650f30a9a763c02223941ae49bf37e.zip |
user/analitza: patch to fix pmmx range()
Diffstat (limited to 'user/analitza/pmmx-test-failure.patch')
-rw-r--r-- | user/analitza/pmmx-test-failure.patch | 14 |
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); |