From 04357dca210a3e90e464e00c9ed1b71e38807723 Mon Sep 17 00:00:00 2001 From: Karl Wette Date: Sat, 12 May 2018 03:52:59 +1000 Subject: [PATCH] Lib/octave: replace is_bool_type() with islogical() for Octave >= 4.4 --- Lib/octave/octprimtypes.swg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/octave/octprimtypes.swg b/Lib/octave/octprimtypes.swg index 308fe6499..1c9aa9089 100644 --- a/Lib/octave/octprimtypes.swg +++ b/Lib/octave/octprimtypes.swg @@ -18,7 +18,11 @@ SWIGINTERNINLINE octave_value SWIGINTERN int SWIG_AsVal_dec(bool)(const octave_value& ov, bool *val) { +%#if SWIG_OCTAVE_PREREQ(4,4,0) + if (!ov.islogical()) +%#else if (!ov.is_bool_type()) +%#endif return SWIG_ERROR; if (val) *val = ov.bool_value();