Mercurial > octave
diff libinterp/corefcn/psi.cc @ 26355:bb3ebaa9460e stable
psi.cc: Fix static analyzer detected issues (bug #55347).
* psi.cc (Fpsi): Call args(2).xidx_type_value()
rather than incorrect version without prepended 'x'.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 01 Jan 2019 21:12:24 -0800 |
parents | 6652d3823428 |
children | cd44edea6a31 |
line wrap: on
line diff
--- a/libinterp/corefcn/psi.cc Tue Jan 01 21:09:48 2019 -0800 +++ b/libinterp/corefcn/psi.cc Tue Jan 01 21:12:24 2019 -0800 @@ -73,7 +73,7 @@ print_usage (); const octave_value oct_z = (nargin == 1) ? args(0) : args(1); - const octave_idx_type k = (nargin == 1) ? 0 : args(0).idx_type_value ("psi: K must be an integer"); + const octave_idx_type k = (nargin == 1) ? 0 : args(0).xidx_type_value ("psi: K must be an integer"); if (k < 0) error ("psi: K must be non-negative");