Mercurial > hg > octave-terminal
changeset 11773:cfe88845aa1e release-3-0-x
fix any(int) bug
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2008 15:58:37 -0500 |
parents | ccde8cbe9501 |
children | 3c08ffee1137 |
files | liboctave/ChangeLog liboctave/intNDArray.cc |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2008-05-11 John W. Eaton <jwe@octave.org> + + * intNDArray.cc (intNDArray<T>::any (int)): Use != for comparison. + 2008-05-05 Rafael Laboissiere <rafael@debian.org> * oct-rl-edit.c (octave_read_init_file): Simply call rl_read_init_file.
--- a/liboctave/intNDArray.cc +++ b/liboctave/intNDArray.cc @@ -135,7 +135,7 @@ boolNDArray intNDArray<T>::any (int dim) const { - MX_ND_ANY_ALL_REDUCTION (MX_ND_ALL_EVAL (this->elem (iter_idx) == T (0)), false); + MX_ND_ANY_ALL_REDUCTION (MX_ND_ANY_EVAL (this->elem (iter_idx) != T (0)), false); } template <class T>