Mercurial > hg > octave-lojdl
changeset 151:527a597cfe47
[project @ 1993-10-10 15:03:18 by jwe]
author | jwe |
---|---|
date | Sun, 10 Oct 1993 15:03:18 +0000 |
parents | 5167d307c1c9 |
children | 1a53b99f7f28 |
files | src/tc-assign.cc |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tc-assign.cc +++ b/src/tc-assign.cc @@ -841,7 +841,7 @@ { int nc = columns (); int new_nc = nc; - if (nc == 0 || rows () == 0) + if (nc == 0) new_nc = rhs_nc; if (! indexed_assign_conforms (iv.capacity (), new_nc, @@ -943,7 +943,7 @@ { int nc = columns (); int new_nc = nc; - if (nc == 0 || rows () == 0) + if (nc == 0) new_nc = rhs_nc; if (! indexed_assign_conforms (ri.nelem (), new_nc, rhs_nr, rhs_nc)) @@ -1018,7 +1018,7 @@ columns ()); int nr = rows (); int new_nr = nr; - if (nr == 0 || columns () == 0) + if (nr == 0) new_nr = rhs_nr; if (! indexed_assign_conforms (new_nr, jv.capacity (), @@ -1041,7 +1041,7 @@ Range rj = tmp_j.range_value (); int nr = rows (); int new_nr = nr; - if (nr == 0 || columns () == 0) + if (nr == 0) new_nr = rhs_nr; if (! indexed_assign_conforms (new_nr, rj.nelem (), rhs_nr, rhs_nc))