diff libinterp/corefcn/__magick_read__.cc @ 23579:c20a0fa91c0c

maint: Deprecate is_bool_type and replace with islogical. * ov.h (is_bool_type): Use OCTAVE_DEPRECATED macro around function. * ov.h (islogical): New function. * __magick_read__.cc, besselj.cc, cellfun.cc, data.cc, find.cc, graphics.cc, ls-mat5.cc, mex.cc, sparse.cc, typecast.cc, ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool-sparse.h, ov-bool.h, ov-java.cc, ov.h: Replace instances of is_bool_type with islogical.
author Rik <rik@octave.org>
date Mon, 12 Jun 2017 17:24:08 -0700
parents 80c42f4cca13
children 7ed6b258db91
line wrap: on
line diff
--- a/libinterp/corefcn/__magick_read__.cc	Mon Jun 12 13:41:35 2017 -0700
+++ b/libinterp/corefcn/__magick_read__.cc	Mon Jun 12 17:24:08 2017 -0700
@@ -1492,7 +1492,7 @@
   if (cmap.isempty ())
     {
       const octave_value alpha = options.getfield ("alpha");
-      if (img.is_bool_type ())
+      if (img.islogical ())
         encode_bool_image (imvec, img.bool_array_value ());
       else if (img.is_uint8_type ())
         encode_uint_image<uint8NDArray>  (imvec, img.uint8_array_value (),