summaryrefslogtreecommitdiffstats
path: root/c++/src/H5FloatType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5FloatType.cpp')
-rw-r--r--c++/src/H5FloatType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5FloatType.cpp b/c++/src/H5FloatType.cpp
index 1912edb..a5b1c51 100644
--- a/c++/src/H5FloatType.cpp
+++ b/c++/src/H5FloatType.cpp
@@ -84,7 +84,7 @@ FloatType::FloatType( 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("FloatType constructor", "H5Dget_type failed");
}