summaryrefslogtreecommitdiffstats
path: root/c++/src/H5EnumType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5EnumType.cpp')
-rw-r--r--c++/src/H5EnumType.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5EnumType.cpp b/c++/src/H5EnumType.cpp
index 2f04d1e..9ba71bf 100644
--- a/c++/src/H5EnumType.cpp
+++ b/c++/src/H5EnumType.cpp
@@ -82,7 +82,7 @@ EnumType::EnumType( const DataSet& dataset ) : DataType()
id = H5Dget_type( dataset.getId() );
// If the datatype id is not valid, throw an exception
- if( id <= 0 )
+ if( id < 0 )
{
throw DataSetIException("EnumType constructor", "H5Dget_type failed");
}
@@ -101,7 +101,7 @@ EnumType::EnumType( const IntType& data_type ) : DataType()
id = H5Tenum_create( data_type.getId() );
// If the datatype id is not valid, throw an exception
- if( id <= 0 )
+ if( id < 0 )
{
throw DataSetIException("EnumType constructor", "H5Tenum_create failed");
}