Mercurial > hg > octave-nkf
diff src/ov-complex.cc @ 4837:81f78a2ff8a6
[project @ 2004-03-12 19:13:01 by jwe]
author | jwe |
---|---|
date | Fri, 12 Mar 2004 19:13:02 +0000 |
parents | 2eb844b27953 |
children | 44046bbaa52c |
line wrap: on
line diff
--- a/src/ov-complex.cc +++ b/src/ov-complex.cc @@ -245,7 +245,8 @@ bool retval = true; space_hid = H5Screate_simple (0, dimens, 0); - if (space_hid < 0) return false; + if (space_hid < 0) + return false; type_hid = hdf5_make_complex_type (H5T_NATIVE_DOUBLE); if (type_hid < 0) @@ -269,6 +270,7 @@ H5Dclose (data_hid); H5Tclose (type_hid); H5Sclose (space_hid); + return retval; } @@ -284,7 +286,7 @@ if (! hdf5_types_compatible (type_hid, complex_type)) { - H5Tclose(complex_type); + H5Tclose (complex_type); H5Dclose (data_hid); return false; } @@ -294,7 +296,7 @@ if (rank != 0) { - H5Tclose(complex_type); + H5Tclose (complex_type); H5Sclose (space_id); H5Dclose (data_hid); return false; @@ -309,9 +311,10 @@ scalar = ctmp; } - H5Tclose(complex_type); + H5Tclose (complex_type); H5Sclose (space_id); H5Dclose (data_hid); + return retval; } #endif