Mercurial > octave-nkf
diff scripts/general/validateattributes.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/general/validateattributes.m Mon Feb 16 14:29:43 2015 -0800 +++ b/scripts/general/validateattributes.m Mon Feb 16 16:51:45 2015 -0800 @@ -327,7 +327,7 @@ endfunction function retval = valid_arg_idx (arg) - retval = isnumeric (arg) && isscalar (arg) && arg > 0 && ceil (arg) == arg; + retval = isnumeric (arg) && isscalar (arg) && arg > 0 && arg == fix (arg); endfunction function cls = replace_cl_group (cls, name, group)