Mercurial > octave
diff libinterp/octave-value/ov-intx.h @ 23093:8aba6d170887
fix prototype of octave_base_int<T>::write (bug #50157)
* ov-intx.h (octave_base_int_scalar::write): Fix declaration.
The skip parameter is int, not octave_idx_type.
* test/io.tst: New test.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Jan 2017 12:19:15 -0500 |
parents | ef4d915df748 |
children | 092078913d54 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-intx.h Thu Jan 26 08:26:46 2017 -0500 +++ b/libinterp/octave-value/ov-intx.h Thu Jan 26 12:19:15 2017 -0500 @@ -612,7 +612,7 @@ idx_vector index_vector (bool /* require_integers */ = false) const { return idx_vector (scalar); } int write (octave::stream& os, int block_size, - oct_data_conv::data_type output_type, octave_idx_type skip, + oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const { return os.write (OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION (),