From 4461678fb5932436a0ce05df4b5a84a10179bb60 Mon Sep 17 00:00:00 2001 From: Neil Fortner Date: Tue, 19 Jul 2022 16:19:02 -0500 Subject: Fix bug in swmr.c introduced with recent merge (double_t) (#1913) * Fix HDFFV-11308 - dataset access properties disappear when using H5Fstart_swmr_write. * Committing clang-format changes * Add test for H5Fstart_swmr_write() persisting DAPL settings. Fix bugs in the library exposed by this test. * Committing clang-format changes * Replace accidental use of double_t in swmr.c with double. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- test/swmr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/swmr.c b/test/swmr.c index 96eb0f0..9ab96d0 100644 --- a/test/swmr.c +++ b/test/swmr.c @@ -3199,7 +3199,7 @@ dummy_append_flush_cb(hid_t H5_ATTR_UNUSED dataset_id, hsize_t H5_ATTR_UNUSED *c static herr_t tssw_persist_dapl_verify(hid_t did, hid_t vdsid1, hid_t vdsid2, hsize_t boundary, H5D_append_cb_t append_func, - void *append_func_ud, size_t rdcc_nslots, size_t rdcc_nbytes, double_t rdcc_w0, + void *append_func_ud, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0, const char *efile_prefix, const char *virtual_prefix, hsize_t gap_size, H5D_vds_view_t virtual_view) { @@ -3211,7 +3211,7 @@ tssw_persist_dapl_verify(hid_t did, hid_t vdsid1, hid_t vdsid2, hsize_t boundary void * append_func_ud_out = NULL; size_t rdcc_nslots_out = 0; size_t rdcc_nbytes_out = 0; - double_t rdcc_w0_out = 0.; + double rdcc_w0_out = 0.; char efile_prefix_out[64]; char virtual_prefix_out[64]; hsize_t gap_size_out = 0; @@ -3314,7 +3314,7 @@ test_start_swmr_write_persist_dapl(hid_t in_fapl) void * append_func_ud = &boundary; size_t rdcc_nslots = 125; size_t rdcc_nbytes = 23434; - double_t rdcc_w0 = 0.68419; + double rdcc_w0 = 0.68419; const char * efile_prefix = "dummy_efile_prefix"; const char * virtual_prefix = "dummy_virtual_prefix"; hsize_t gap_size = 421; -- cgit v0.12