changeset 4918:48b9473dd2ad

of-quaternion: add dev 6.0 fixes * src/of-quaternion-2-dev-fixes.patch: new file * dist-files.mk: add ref to of-quaternion-2-dev-fixes.patch
author John Donoghue
date Thu, 03 Jan 2019 09:05:01 -0500
parents 4f39dbdea431
children 9cf8d7a723d7
files dist-files.mk src/of-quaternion-2-dev-fixes.patch
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Jan 03 09:02:52 2019 -0500
+++ b/dist-files.mk	Thu Jan 03 09:05:01 2019 -0500
@@ -516,6 +516,7 @@
   of-optiminterp-1-dev-fixes.patch \
   of-optiminterp.mk \
   of-quaternion-1-cross-fixes.patch \
+  of-quaternion-2-dev-fixes.patch \
   of-quaternion.mk \
   of-queueing.mk \
   of-signal-1-fixes.patch \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-quaternion-2-dev-fixes.patch	Thu Jan 03 09:05:01 2019 -0500
@@ -0,0 +1,14 @@
+diff -ur quaternion.orig/src/is_real_array.cc quaternion/src/is_real_array.cc
+--- quaternion.orig/src/is_real_array.cc	2019-01-02 13:53:40.766144030 -0500
++++ quaternion/src/is_real_array.cc	2019-01-02 13:54:35.459444478 -0500
+@@ -46,8 +46,8 @@
+         {
+             // 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;