diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-03-28 04:15:43 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-03-28 04:15:43 (GMT) |
commit | 72d896f70948d515cf047e76d1067ae5c3ccd35c (patch) | |
tree | 8284a0a63946e607a9957ab5524a498462c35204 /c++/test/tcompound.cpp | |
parent | 6f75afd15ef87c7075512fa76422369320828717 (diff) | |
download | hdf5-72d896f70948d515cf047e76d1067ae5c3ccd35c.zip hdf5-72d896f70948d515cf047e76d1067ae5c3ccd35c.tar.gz hdf5-72d896f70948d515cf047e76d1067ae5c3ccd35c.tar.bz2 |
[svn-r26640] Purpose: Fix bugs
Description:
- Changed DataType::operator= to simply copy the id of rhs instead of
calling H5Tcopy because, when the operator= is invoked, a different
datatype id is created and it won't have the same characteristics as
rhs', specifically, if the rhs represents a named datatype, "this"
would still be a transient datatype.
- Added a DataType constructor that takes a PredType object, and this
constructor will cause H5Tcopy to generate another datatype id, from a
predefined datatype.
- Fixed various mistakes in tests.
Platforms tested:
Linux/64 (platypus)
Linux/32 2.6 (jam/gnu and jam/icc 15)
SunOS 5.11 (emu development/production)
Diffstat (limited to 'c++/test/tcompound.cpp')
-rw-r--r-- | c++/test/tcompound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/test/tcompound.cpp b/c++/test/tcompound.cpp index 156f438..dbf2f0c 100644 --- a/c++/test/tcompound.cpp +++ b/c++/test/tcompound.cpp @@ -780,7 +780,7 @@ static void test_compound_set_size() CompType dtype_tmp = file.openCompType("dtype"); // Make a copy of the data type - dtype = dtype_tmp; + dtype.copy(dtype_tmp); // Verify that the compound is not packed // packed = dtype_tmp.packed(); // not until C library provides API |