File: build-against-octave-6.patch

package info (click to toggle)
octave-quaternion 2.4.0-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: cpp: 30; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Build against Octave 6.1
 Replace deprecated methods is_numeric_type, is_real_type, and
 is_bool_type by isnumeric, isreal, and islogical, respectively.
Author: Rafael Laboissière <rafael@debian.org>
Origin: other, https://hg.octave.org/mxe-octave/file/tip/src/of-quaternion-2-dev-fixes.patch
Bug: https://savannah.gnu.org/bugs/?59163
Bug-Debian: https://bugs.debian.org/976203
Forwarded: not-needed
Last-Update: 2020-12-01

--- octave-quaternion-2.4.0.orig/src/is_real_array.cc
+++ octave-quaternion-2.4.0/src/is_real_array.cc
@@ -46,8 +46,8 @@ Avoid nasty stuff like @code{true = isre
         {
             // args(i).ndims () should be always >= 2
             if (args(i).ndims () < 2
-                || ! ((args(i).is_numeric_type () && args(i).is_real_type ())
-                      || args(i).is_bool_type ()))
+                || ! ((args(i).isnumeric () && args(i).isreal ())
+                      || args(i).islogical ()))
             {
                 retval = false;
                 break;