Mercurial > hg > octave-lyh
diff liboctave/Array.h @ 8118:311c9b36df8f
replace int->octave_idx_type in Array<T>
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 18 Sep 2008 08:34:04 +0200 |
parents | 82be108cc558 |
children | acfd80c08d60 |
line wrap: on
line diff
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -171,11 +171,11 @@ template <class U> T * - coerce (const U *a, int len) + coerce (const U *a, octave_idx_type len) { T *retval = new T [len]; - for (int i = 0; i < len; i++) + for (octave_idx_type i = 0; i < len; i++) retval[i] = T (a[i]); return retval;