Mercurial > hg > octave-avbm
changeset 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 | 40aa36406a94 |
children | acfd80c08d60 |
files | liboctave/Array.h liboctave/ChangeLog |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
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;
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2008-09-18 Jaroslav Hajek <highegg@gmail.com> + + * Array.h (Array<T>::coerce): Use octave_idx_type instead of int. + 2008-09-12 Jaroslav Hajek <highegg@gmail.com> * oct-inttypes.h (pow (const octave_int<T>&, const octave_int<T>&)):