diff options
Diffstat (limited to 'c++/src/H5IntType.cpp')
-rw-r--r-- | c++/src/H5IntType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5IntType.cpp b/c++/src/H5IntType.cpp index ba14de1..f161c13 100644 --- a/c++/src/H5IntType.cpp +++ b/c++/src/H5IntType.cpp @@ -84,7 +84,7 @@ IntType::IntType( 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("IntType constructor", "H5Dget_type failed"); } |