diff options
Diffstat (limited to 'c++/src/H5StrType.cpp')
-rw-r--r-- | c++/src/H5StrType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5StrType.cpp b/c++/src/H5StrType.cpp index ed011bd..4bd946d 100644 --- a/c++/src/H5StrType.cpp +++ b/c++/src/H5StrType.cpp @@ -116,7 +116,7 @@ StrType::StrType( const DataSet& dataset ) : AtomType () // Calls C function H5Dget_type to get the id of the datatype id = H5Dget_type( dataset.getId() ); - if( id <= 0 ) + if( id < 0 ) { throw DataSetIException("StrType constructor", "H5Dget_type failed"); } |