summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5DataSet.cpp')
-rw-r--r--c++/src/H5DataSet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5DataSet.cpp b/c++/src/H5DataSet.cpp
index e617634..765b1e5 100644
--- a/c++/src/H5DataSet.cpp
+++ b/c++/src/H5DataSet.cpp
@@ -73,7 +73,7 @@ DataSpace DataSet::getSpace() const
hid_t dataspace_id = H5Dget_space( id );
// If the dataspace id is invalid, throw an exception
- if( dataspace_id <= 0 )
+ if( dataspace_id < 0 )
{
throw DataSetIException("DataSet::getSpace", "H5Dget_space failed");
}
@@ -106,7 +106,7 @@ hid_t DataSet::p_get_type() const
DSetCreatPropList DataSet::getCreatePlist() const
{
hid_t create_plist_id = H5Dget_create_plist( id );
- if( create_plist_id <= 0 )
+ if( create_plist_id < 0 )
{
throw DataSetIException("DataSet::getCreatePlist", "H5Dget_create_plist failed");
}