view .hgsubstate @ 18725:9a6646cc7c3e

Fix load/save to handle up to 2^32-1 elements. Use std::streamsize in calculations of number of bytes, rather than octave_idx_type, so that expressions like 8 * nel do not overflow. * ls-mat4.cc (save_mat_binary_data): Use std::streamsize in calculations of number of bytes. * ls-mat5.cc (read_mat5_integer_data, MAT5_DO_WRITE): Use std::streamsize in calculations of number of bytes. * data-conv.cc (LS_DO_READ, LS_DO_READ, read_doubles, read_floats, write_floats): Use std::streamsize in calculations of number of bytes.
author Rik <rik@octave.org>
date Sun, 27 Apr 2014 17:38:03 -0700
parents 18096cd30339
children 203431f40cb2
line wrap: on
line source

6d4e36653a40da6604507406f2a97e3e64bf9dbf gnulib-hg