Mercurial > jwe > octave
changeset 29347:b50ca5cbfb0f
Allow writing full size matrices with dlmwrite (bug #59955).
* oct-stream.cc (class printf_value_cache): Define four member variables
"val_idx", "elt_idx", "n_vals", "n_elts" to be of octave_idx_type rather than
int so that they can hold values as large as Octave matrices on 64-bit
platforms.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 01 Feb 2021 10:01:59 -0800 |
parents | 3c6e3556fac4 |
children | 0998695317d8 |
files | libinterp/corefcn/oct-stream.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stream.cc Sat Jan 30 12:28:43 2021 +0100 +++ b/libinterp/corefcn/oct-stream.cc Mon Feb 01 10:01:59 2021 -0800 @@ -1512,7 +1512,7 @@ { char *retval; - if (eob - idx > size) + if (eob - idx > size) { retval = idx; idx += size; @@ -5457,10 +5457,10 @@ private: const octave_value_list values; - int val_idx; - int elt_idx; - int n_vals; - int n_elts; + octave_idx_type val_idx; + octave_idx_type elt_idx; + octave_idx_type n_vals; + octave_idx_type n_elts; bool have_data; octave_value curr_val; state curr_state;