Mercurial > hg > octave-terminal
changeset 10750:f75e827649a5
struct rewrite: 4 failures remaining
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 24 Jun 2010 13:00:11 +0200 |
parents | df1a3e0ebbff |
children | 717ba2c3eef1 |
files | src/oct-map.cc |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oct-map.cc +++ b/src/oct-map.cc @@ -978,7 +978,7 @@ Cell& ref = p != end () ? contents (p) : tmp; if (&ref == &tmp) - ref.clear (dimensions); + ref = Cell (dimensions); ref.assign (idx, rhs); @@ -987,10 +987,10 @@ dimensions = ref.dims (); octave_idx_type nf = nfields (); - for (octave_idx_type k = 0; k < nf; k++) + for (octave_idx_type i = 0; i < nf; i++) { - if (&xvals[k] != &ref) - xvals[k].resize (dimensions, Cell::resize_fill_value ()); + if (&xvals[i] != &ref) + xvals[i].resize (dimensions, Cell::resize_fill_value ()); } optimize_dimensions ();