Mercurial > hg > octave-nkf
changeset 6553:af5025cb0f2b
[project @ 2007-04-20 15:37:19 by jwe]
author | jwe |
---|---|
date | Fri, 20 Apr 2007 15:37:20 +0000 |
parents | d933e1615bb1 |
children | 5dde4dc2bcaf |
files | liboctave/Array.cc liboctave/ChangeLog scripts/ChangeLog scripts/plot/Makefile.in |
diffstat | 4 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -2569,7 +2569,7 @@ for (octave_idx_type i = 0; i < rhs_len; i++) lhs.elem (i) = rhs.elem (i); } - else if (rhs_len != 1) + else if (rhs_len != lhs_len) (*current_liboctave_error_handler) ("A(:) = X: A must be the same size as X"); }
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2007-04-20 John W. Eaton <jwe@octave.org> + + * Array.cc (assign1): For x(:) = RHS, require rhs_len == lhs_len, + not rhs_len == 1. + 2007-04-18 Michael Goffioul <michael.goffioul@swing.be> * oct-md5.h (oct_md5, oct_md5_file): Tag decls with OCTAVE_API.