diff options
Diffstat (limited to 'c++/src/H5VarLenType.cpp')
-rw-r--r-- | c++/src/H5VarLenType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5VarLenType.cpp b/c++/src/H5VarLenType.cpp index ebe0e86..076ba12 100644 --- a/c++/src/H5VarLenType.cpp +++ b/c++/src/H5VarLenType.cpp @@ -65,7 +65,7 @@ VarLenType::VarLenType(const VarLenType& original) : DataType(original) {} VarLenType::VarLenType(const DataType* base_type) : DataType() { id = H5Tvlen_create(base_type->getId()); - if (id <= 0) + if (id < 0) { throw DataTypeIException("VarLenType constructor", "H5Tvlen_create returns negative value"); |