We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b9ee19 commit 3a290ecCopy full SHA for 3a290ec
1 file changed
src/IO/HDF5/HDF5IOHandler.cpp
@@ -2015,7 +2015,7 @@ void HDF5IOHandlerImpl::writeDataset(
2015
"write");
2016
auto defer_close_dataType = auxiliary::defer([&]() {
2017
status = H5Tclose(dataType);
2018
- if (status == 0)
+ if (status != 0)
2019
{
2020
std::cerr << "[HDF5] Internal error: Failed to close dataset "
2021
"datatype during dataset write."
0 commit comments