Mercurial > hg > octave-max
changeset 10880:92c3e8068f28
allow diff(logical)
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 10 Aug 2010 12:52:52 +0200 |
parents | 5af852c93af3 |
children | 22cd681a4e28 |
files | src/ChangeLog src/data.cc |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-08-10 Jaroslav Hajek <highegg@gmail.com> + + * data.cc (Fdiff): Allow logical type. + 2010-08-09 Rik <octave@nomad.inbox5.com> * oct-parse.yy (parse_fcn_file): Restore parsing of help text
--- a/src/data.cc +++ b/src/data.cc @@ -6461,8 +6461,8 @@ if (nargin < 1 || nargin > 3) print_usage (); - else if (! args(0).is_numeric_type ()) - error ("diff: X must be numeric"); + else if (! (args(0).is_numeric_type () || args(0).is_bool_type ())) + error ("diff: X must be numeric or logical"); if (! error_state) {