summaryrefslogtreecommitdiff
path: root/math/libqalculate/files/patch-libqalculate-Number.cc
diff options
context:
space:
mode:
Diffstat (limited to 'math/libqalculate/files/patch-libqalculate-Number.cc')
-rw-r--r--math/libqalculate/files/patch-libqalculate-Number.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/math/libqalculate/files/patch-libqalculate-Number.cc b/math/libqalculate/files/patch-libqalculate-Number.cc
new file mode 100644
index 000000000000..c179a9ee8938
--- /dev/null
+++ b/math/libqalculate/files/patch-libqalculate-Number.cc
@@ -0,0 +1,29 @@
+--- libqalculate/Number.cc.orig Thu Nov 3 18:27:14 2005
++++ libqalculate/Number.cc Thu Nov 3 18:28:15 2005
+@@ -2389,7 +2389,7 @@
+ if(po.indicate_infinite_series && !infinite_series) {
+ remainders.push_back(remainder);
+ }
+- remainder *= base;
++ remainder = remainder * base;
+ div = cln::truncate2(remainder, d);
+ remainder2 = div.remainder;
+ remainder = div.quotient;
+@@ -2398,7 +2398,7 @@
+ started = !cln::zerop(remainder);
+ }
+ if(started) {
+- num *= base;
++ num = num * base;
+ num += remainder;
+ }
+ l10++;
+@@ -2417,7 +2417,7 @@
+ }
+ remainders.clear();
+ if(!exact && !infinite_series) {
+- remainder *= base;
++ remainder = remainder * base;
+ div = cln::truncate2(remainder, d);
+ remainder2 = div.remainder;
+ remainder = div.quotient;