Mercurial > octave
diff libinterp/corefcn/matrix_type.cc @ 26354:409120c6bf43 stable
matrix_type.cc: Fix static analyzer detected issues (bug #55347).
* matrix_type.cc (Fmatrix_type): Call args(2).xvector_value()
rather than incorrect version without prepended 'x'.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 01 Jan 2019 21:09:48 -0800 |
parents | 6652d3823428 |
children | 00f796120a6d |
line wrap: on
line diff
--- a/libinterp/corefcn/matrix_type.cc Tue Jan 01 21:05:44 2019 -0800 +++ b/libinterp/corefcn/matrix_type.cc Tue Jan 01 21:09:48 2019 -0800 @@ -266,7 +266,7 @@ if (nargin == 3 && (str_typ == "upper" || str_typ == "lower")) { - const ColumnVector perm = args(2).vector_value ("matrix_type: Invalid permutation vector PERM"); + const ColumnVector perm = args(2).xvector_value ("matrix_type: Invalid permutation vector PERM"); octave_idx_type len = perm.numel (); dim_vector dv = args(0).dims (); @@ -403,7 +403,7 @@ if (nargin == 3 && (str_typ == "upper" || str_typ == "lower")) { - const ColumnVector perm = args(2).vector_value ("matrix_type: Invalid permutation vector PERM"); + const ColumnVector perm = args(2).xvector_value ("matrix_type: Invalid permutation vector PERM"); octave_idx_type len = perm.numel (); dim_vector dv = args(0).dims ();