Mercurial > hg > octave-terminal
changeset 3515:f84c0b63b3df
[project @ 2000-02-01 22:41:11 by jwe]
author | jwe |
---|---|
date | Tue, 01 Feb 2000 22:41:11 +0000 |
parents | 1d79338a016c |
children | 9118c2a3bc79 |
files | liboctave/Array2-idx.h |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array2-idx.h +++ b/liboctave/Array2-idx.h @@ -374,15 +374,15 @@ { int new_nc = nc; - int idx = 0; + int iidx = 0; for (int j = 0; j < nc; j++) - if (j == idx_j.elem (idx)) + if (j == idx_j.elem (iidx)) { - idx++; + iidx++; new_nc--; - if (idx == num_to_delete) + if (iidx == num_to_delete) break; } @@ -391,11 +391,11 @@ T *new_data = new T [nr * new_nc]; int jj = 0; - idx = 0; + iidx = 0; for (int j = 0; j < nc; j++) { - if (idx < num_to_delete && j == idx_j.elem (idx)) - idx++; + if (iidx < num_to_delete && j == idx_j.elem (iidx)) + iidx++; else { for (int i = 0; i < nr; i++)