diff options
Diffstat (limited to 'c++/src/H5DataSet.cpp')
-rw-r--r-- | c++/src/H5DataSet.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/c++/src/H5DataSet.cpp b/c++/src/H5DataSet.cpp index 4d3050c..9858e7d 100644 --- a/c++/src/H5DataSet.cpp +++ b/c++/src/H5DataSet.cpp @@ -405,11 +405,9 @@ int DataSet::iterateElems( void* buf, const DataType& type, const DataSpace& spa //-------------------------------------------------------------------------- void DataSet::extend( const hsize_t* size ) const { - herr_t ret_value = H5Dextend( id, size ); - if( ret_value < 0 ) // raise exception when H5Dextend returns a neg value - { - throw DataSetIException("DataSet::extend", "H5Dextend failed"); - } + herr_t ret_value = H5Dset_extent( id, size ); + if( ret_value < 0 ) // raise exception when H5Dset_extent returns a neg value + throw DataSetIException("DataSet::extend", "H5Dset_extent failed"); } //-------------------------------------------------------------------------- |