Mercurial > hg > octave-lojdl
changeset 14591:6b7e9724912a
Silence warning about deprecated resize() call
*Array.cc (Array<T>::diag): Use dim_vector to silence warning
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Wed, 02 May 2012 17:12:26 -0400 |
parents | fd6e50e2eee6 |
children | b99cb1b0ee7c |
files | liboctave/Array.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -2530,7 +2530,7 @@ if (ndims () == 2 && (rows () == 1 || cols () == 1)) { - retval.resize (m, n, resize_fill_value ()); + retval.resize (dim_vector (m, n), resize_fill_value ()); for (octave_idx_type i = 0; i < numel (); i++) retval.xelem (i, i) = xelem (i);