# HG changeset patch # User jwe # Date 1068273137 0 # Node ID 7e08de0d1a98a1157cf08aeb4e802821ad63d588 # Parent a1ac9ab474a1a086512079ce27d59534c9988bfd [project @ 2003-11-08 06:32:17 by jwe] diff --git a/liboctave/Array.cc b/liboctave/Array.cc --- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -1738,9 +1738,9 @@ if (ra_idx.is_colon ()) { - dim_vector idx (orig_len); - - retval = Array (*this, idx); + dim_vector iidx (orig_len); + + retval = Array (*this, iidx); } else if (length () == 1) { @@ -1865,18 +1865,18 @@ { int r_idx = ra_idx(0); - Array idx = get_ra_idx (r_idx, dims ()); + Array iidx = get_ra_idx (r_idx, dims ()); dim_vector new_dims (1); // This shouldn't be needed. - Array e (idx.length ()); - - for (int i = 0; i < idx.length();i++) - e(i) = idx(i); - - // Should be able to call elem (idx). + Array e (iidx.length ()); + + for (int i = 0; i < iidx.length();i++) + e(i) = iidx(i); + + // Should be able to call elem (iidx). retval = Array (new_dims, elem (e)); }