Mercurial > hg > octave-kai
changeset 7467:ba4214856f9f
avoid shadow warning
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 12 Feb 2008 02:00:45 -0500 |
parents | 49d462292af4 |
children | 85be2610d6e3 |
files | liboctave/Range.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Range.cc +++ b/liboctave/Range.cc @@ -171,9 +171,9 @@ } octave_idx_type tmp = reverse ? nel - 1 : 0; - octave_idx_type inc = reverse ? -1 : 1; + octave_idx_type stp = reverse ? -1 : 1; - for (octave_idx_type i = 0; i < nel; i++, tmp += inc) + for (octave_idx_type i = 0; i < nel; i++, tmp += stp) psidx[i] = tmp; }