Skip to content

Commit

Permalink
Bug fix in h5::file ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoemi09 authored and Wentzell committed Apr 24, 2024
1 parent d3d104a commit 4b6228e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/h5/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace h5 {
break;
}
// create new file in read-write mode if the file does not exist yet
case 'e': id = H5Fopen(name, H5F_ACC_EXCL, H5P_DEFAULT); break;
case 'e': id = H5Fcreate(name, H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT); break;
default: throw std::runtime_error("File mode is not one of r, w, a, e");
}

Expand Down

0 comments on commit 4b6228e

Please sign in to comment.