Mercurial > hg > octave-nkf
changeset 14158:727504fd26f0 stable
Fix erroneous indexing error message.
* Array.cc (Array<T>::index): Fix which idx_vector is used to generate
the error message for a bad column index.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 06 Jan 2012 11:45:00 -0500 |
parents | d0dcf26c4cbd |
children | bb5790c5e713 |
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 @@ -783,7 +783,7 @@ if (i.extent (r) != r) gripe_index_out_of_range (2, 1, i.extent (r), r); // throws if (j.extent (c) != c) - gripe_index_out_of_range (2, 2, i.extent (c), c); // throws + gripe_index_out_of_range (2, 2, j.extent (c), c); // throws octave_idx_type n = numel (), il = i.length (r), jl = j.length (c);