diff liboctave/Range.cc @ 7467:ba4214856f9f

avoid shadow warning
author John W. Eaton <jwe@octave.org>
date Tue, 12 Feb 2008 02:00:45 -0500
parents 2467639bd8c0
children 36594d5bbe13
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;
 
 }