Mercurial > hg > octave-lyh
changeset 6775:67794bf1ab3b
[project @ 2007-07-14 20:27:05 by dbateman]
author | dbateman |
---|---|
date | Sat, 14 Jul 2007 20:28:06 +0000 |
parents | 3b09c87d5165 |
children | d388a35a9481 |
files | src/ChangeLog src/ov-bool-sparse.cc |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-07-14 Michael Goffioul <michael.goffioul@swing.be> + + * src/ov-bool-sparse.cc (octave_sparse_bool_matrix:load_hdf5): + Use OCTAVE_LOCAL_BUFFER for temporary boolean value. + 2007-06-27 David Bateman <dbateman@free.fr> * DLD-FUNCTIONS/sparse.cc (Fspdiag): Ensure spdiag(zeros(1,0)) returns
--- a/src/ov-bool-sparse.cc +++ b/src/ov-bool-sparse.cc @@ -671,11 +671,7 @@ return false; } -#ifndef _MSC_VER - hbool_t htmp[nz]; -#else - std::vector<hbool_t> htmp (nz); -#endif + OCTAVE_LOCAL_BUFFER (hbool_t, htmp, nz); bool retval = false; if (H5Dread (data_hid, H5T_NATIVE_HBOOL, H5S_ALL, H5S_ALL, H5P_DEFAULT, htmp) >= 0) {