diff options
Diffstat (limited to 'c++/src/H5ArrayType.cpp')
-rw-r--r-- | c++/src/H5ArrayType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5ArrayType.cpp b/c++/src/H5ArrayType.cpp index b580660..6366752 100644 --- a/c++/src/H5ArrayType.cpp +++ b/c++/src/H5ArrayType.cpp @@ -92,7 +92,7 @@ ArrayType::ArrayType( const ArrayType& original ) : DataType( original ) ArrayType::ArrayType(const DataType& base_type, int ndims, const hsize_t* dims) : DataType() { hid_t new_type_id = H5Tarray_create(base_type.getId(), ndims, dims, NULL); - if (new_type_id <= 0) + if (new_type_id < 0) { throw DataTypeIException("ArrayType constructor", "H5Tarray_create failed"); } |