From 22dd59cd672d876a99c719087117b19074cd0d49 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 1 Jul 2019 07:28:36 -0500 Subject: gn: Add octave@3.4.3. Add two upstream patches and package glpk@4.48 for octave to use. --- octave-nested-class.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 octave-nested-class.patch (limited to 'octave-nested-class.patch') 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 +# Date 1325958274 18000 +# Node ID 7ffd2a0791ef389474bb52228e9b046a3721ab3f +# Parent 906eecd4bf43b0146c50019ee41acac2dc83c935 +fix name lookup problem with static nested class + +* oct-inttypes.h (octave_int_arith_base::mul): +Tag truncate_int with octave_int_base::. +(octave_int_arith_base::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 (x) +- * static_cast (y)); ++ return octave_int_base::truncate_int (static_cast (x) ++ * static_cast (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 (x) +- * static_cast (y)); ++ return octave_int_base::truncate_int (static_cast (x) ++ * static_cast (y)); + } + + // Division. + -- cgit v1.2.3