Mercurial > octave
diff src/ov-re-mat.cc @ 5943:c038c2947ee1
[project @ 2006-08-18 21:27:03 by jwe]
author | jwe |
---|---|
date | Fri, 18 Aug 2006 21:27:04 +0000 |
parents | c20eb7330d13 |
children | cdef72fcd206 |
line wrap: on
line diff
--- a/src/ov-re-mat.cc Fri Aug 18 18:57:06 2006 +0000 +++ b/src/ov-re-mat.cc Fri Aug 18 21:27:04 2006 +0000 @@ -146,8 +146,11 @@ } boolNDArray -octave_matrix::bool_array_value (void) const +octave_matrix::bool_array_value (bool warn) const { + if (warn && matrix.any_element_not_one_or_zero ()) + gripe_logical_conversion (); + return boolNDArray (matrix); }