Skip to content

Commit

Permalink
use read-only mode as default for Module.open
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Aug 28, 2024
1 parent 15ec50e commit 5a04d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdf5_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ EM_JS(void, throw_error, (const char *string_error), {
// // pass
// }

int64_t open(const std::string& filename_string, unsigned int h5_mode, bool track_order = false)
int64_t open(const std::string& filename_string, unsigned int h5_mode = H5F_ACC_RDONLY, bool track_order = false)
{
const char *filename = filename_string.c_str();
hid_t file_id;
Expand Down

0 comments on commit 5a04d24

Please sign in to comment.