summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-12-09 21:42:40 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-12-09 21:42:40 (GMT)
commita6be1c039736edc59912c925e8727f08a6523b1d (patch)
treeeb2c201216d8de7e269d0caf9a833e660c11dd33 /test/vfd_swmr.c
parent0f33e41541352b2e5cc7053d750a16dfa3e8e2ff (diff)
downloadhdf5-a6be1c039736edc59912c925e8727f08a6523b1d.zip
hdf5-a6be1c039736edc59912c925e8727f08a6523b1d.tar.gz
hdf5-a6be1c039736edc59912c925e8727f08a6523b1d.tar.bz2
Be brief: don't cast the last parameter of H5Pset_file_space_strategy(), the
constant `1`, to `hsize_t`.
Diffstat (limited to 'test/vfd_swmr.c')
-rw-r--r--test/vfd_swmr.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/vfd_swmr.c b/test/vfd_swmr.c
index fc517d2..a99573a 100644
--- a/test/vfd_swmr.c
+++ b/test/vfd_swmr.c
@@ -594,7 +594,7 @@ test_file_end_tick(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
/* Create the file with VFD SWMR configured */
@@ -725,7 +725,7 @@ test_writer_create_open_flush(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
/* Create an HDF5 file with VFD SWMR configured */
@@ -862,7 +862,7 @@ test_writer_md(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
if(H5Pset_file_space_page_size(fcpl, FS_PAGE_SIZE) < 0)
FAIL_STACK_ERROR;
@@ -1145,8 +1145,7 @@ test_reader_md_concur(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE,
- FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
if(H5Pset_file_space_page_size(fcpl, FS_PAGE_SIZE) < 0)
@@ -1815,7 +1814,7 @@ test_multiple_file_opens(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
/* Enable page buffering */
@@ -1978,8 +1977,7 @@ test_multiple_concur_file_opens(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE,
- FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
if(H5Pset_file_space_page_size(fcpl, FS_PAGE_SIZE) < 0)
@@ -2356,7 +2354,7 @@ test_same_file_opens(void)
FAIL_STACK_ERROR
/* Set file space strategy */
- if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, (hsize_t)1) < 0)
+ if(H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, 1) < 0)
FAIL_STACK_ERROR;
/*