# HG changeset patch # User Jaroslav Hajek # Date 1261514693 -3600 # Node ID 1ce1ae44857270642d4db52868139d10e8829420 # Parent 3275dda012f7d38f26ac5ef36efb4e3f6e8277bc support cummin/cummax for bools diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-12-16 Jaroslav Hajek + + * DLD-FUNCTIONS/max.cc (do_cumminmax_body): Support also btyp_bool. + 2009-12-22 Rob Mahurin * find-defun-files.sh: Use SED and EGREP as returned by configure. diff --git a/src/DLD-FUNCTIONS/max.cc b/src/DLD-FUNCTIONS/max.cc --- a/src/DLD-FUNCTIONS/max.cc +++ b/src/DLD-FUNCTIONS/max.cc @@ -543,6 +543,13 @@ MAKE_INT_BRANCH (uint32); MAKE_INT_BRANCH (uint64); #undef MAKE_INT_BRANCH + case btyp_bool: + { + retval = do_cumminmax_red_op (arg, nargout, dim, ismin); + if (retval.length () > 0) + retval(0) = retval(0).bool_array_value (); + break; + } default: gripe_wrong_type_arg (func, arg); }