summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5DataType.cpp')
-rw-r--r--c++/src/H5DataType.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp
index 1d2a519..96aee12 100644
--- a/c++/src/H5DataType.cpp
+++ b/c++/src/H5DataType.cpp
@@ -65,7 +65,7 @@ DataType::DataType( const H5T_class_t type_class, size_t size ) : H5Object(), is
{
// Call C routine to create the new datatype
id = H5Tcreate( type_class, size );
- if( id <= 0 )
+ if( id < 0 )
{
throw DataTypeIException("DataType constructor", "H5Tcreate failed");
}
@@ -114,7 +114,7 @@ void DataType::copy( const DataType& like_type )
// call C routine to copy the datatype
id = H5Tcopy( like_type.getId() );
- if( id <= 0 )
+ if( id < 0 )
throw DataTypeIException("DataType::copy", "H5Tcopy failed");
}