Mercurial > octave-nkf
diff scripts/testfun/assert.m @ 19759:5f2c0ca0ef51
Ensure that numbers passed to integer *printf format codes are integers (bug #44245).
* num2str.m, validateattributes.m, inputname.m, stemleaf.m, print.m,
__ghostscript__.m, __gnuplot_print__.m, __go_draw_axes__.m,
__go_draw_figure__.m, bicg.m, qmr.m, mat2str.m, validatestring.m, assert.m:
Ensure that numbers passed to integer *printf format codes are integers.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 16 Feb 2015 16:51:45 -0800 |
parents | 4197fc428c7d |
children | 9fc020886ae9 |
line wrap: on
line diff
--- a/scripts/testfun/assert.m Mon Feb 16 14:29:43 2015 -0800 +++ b/scripts/testfun/assert.m Mon Feb 16 16:51:45 2015 -0800 @@ -641,7 +641,7 @@ cout = cell (numel (erridx), 1); tmp = cell (1, numel (matsize)); - [tmp{:}] = ind2sub (matsize, erridx (:)); + [tmp{:}] = ind2sub (matsize, erridx(:)); subs = [tmp{:}]; if (numel (matsize) == 2) subs = subs(:, matsize != 1);