Mercurial > jwe > octave
changeset 28616:deebf4428e56
avoid warning when compiling with 32-bit octave_idx_type (bug #58888)
* pt-eval.cc (tree_evaluator::visit_simple_for_command):
Use OCTAVE_IDX_TYPE_FORMAT instead of %ld.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 03 Aug 2020 11:05:10 -0400 |
parents | 57b9588b4d3c |
children | b11f026bc443 |
files | libinterp/parse-tree/pt-eval.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc Mon Aug 03 10:38:53 2020 -0400 +++ b/libinterp/parse-tree/pt-eval.cc Mon Aug 03 11:05:10 2020 -0400 @@ -2531,7 +2531,8 @@ if (octave::math::isinf (rng.limit ())) warning_with_id ("Octave:infinite-loop", - "FOR loop limit is infinite, will stop after %ld steps", + "FOR loop limit is infinite, will stop after " + OCTAVE_IDX_TYPE_FORMAT " steps", steps); for (octave_idx_type i = 0; i < steps; i++)