aboutsummaryrefslogtreecommitdiff
path: root/octave-nested-class.patch
diff options
context:
space:
mode:
authorPjotr Prins2019-08-01 08:59:33 -0500
committerPjotr Prins2019-08-01 08:59:33 -0500
commita5a1e75c1379d9c26c0a0f9dbb9fb069c7bf7f18 (patch)
tree198824fa4435adb7bc850f129fff600d607eaa22 /octave-nested-class.patch
parentfd06a7a744cb2368d410e131b4f8c6bc7738cc94 (diff)
parent25db4463972bc8729436d84d8be003ea7eacad71 (diff)
downloadguix-bioinformatics-a5a1e75c1379d9c26c0a0f9dbb9fb069c7bf7f18.tar.gz
Merge branch 'master' of gitlab.com:genenetwork/guix-bioinformatics
Diffstat (limited to 'octave-nested-class.patch')
-rw-r--r--octave-nested-class.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/octave-nested-class.patch b/octave-nested-class.patch
new file mode 100644
index 0000000..6d835cb
--- /dev/null
+++ b/octave-nested-class.patch
@@ -0,0 +1,39 @@
+https://hg.savannah.gnu.org/hgweb/octave/raw-rev/7ffd2a0791ef
+
+# HG changeset patch
+# User John W. Eaton <jwe@octave.org>
+# Date 1325958274 18000
+# Node ID 7ffd2a0791ef389474bb52228e9b046a3721ab3f
+# Parent 906eecd4bf43b0146c50019ee41acac2dc83c935
+fix name lookup problem with static nested class
+
+* oct-inttypes.h (octave_int_arith_base<T,false>::mul):
+Tag truncate_int with octave_int_base<T>::.
+(octave_int_arith_base<T,true>::mul): Likewise.
+
+diff --git a/liboctave/oct-inttypes.h b/liboctave/oct-inttypes.h
+--- a/liboctave/oct-inttypes.h
++++ b/liboctave/oct-inttypes.h
+@@ -366,8 +366,8 @@
+ {
+ // Promotion type for multiplication (if exists).
+ typedef typename query_integer_type<2*sizeof (T), false>::type mptype;
+- return truncate_int (static_cast<mptype> (x)
+- * static_cast<mptype> (y));
++ return octave_int_base<T>::truncate_int (static_cast<mptype> (x)
++ * static_cast<mptype> (y));
+ }
+
+ // Division with rounding to nearest. Note that / and % are probably
+@@ -621,8 +621,8 @@
+ {
+ // Promotion type for multiplication (if exists).
+ typedef typename query_integer_type<2*sizeof (T), true>::type mptype;
+- return truncate_int (static_cast<mptype> (x)
+- * static_cast<mptype> (y));
++ return octave_int_base<T>::truncate_int (static_cast<mptype> (x)
++ * static_cast<mptype> (y));
+ }
+
+ // Division.
+