Mercurial > hg > octave-lyh
diff liboctave/Array.cc @ 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 | 72c96de7a403 |
children | d07e989686b0 3d4bea9accd7 |
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);