diff options
author | kmu <kmu@hdfgroup.org> | 2020-01-23 21:12:00 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:52 (GMT) |
commit | 30e61cf0904697c256fb3236fab118d49e2722cf (patch) | |
tree | 187e1fc7c2f58121c2d94fc1543fb2a38e6049b1 /test/vds_swmr_gen.c | |
parent | cfd8856288232b1cd1e495ddfd4aba79d1f60422 (diff) | |
download | hdf5-30e61cf0904697c256fb3236fab118d49e2722cf.zip hdf5-30e61cf0904697c256fb3236fab118d49e2722cf.tar.gz hdf5-30e61cf0904697c256fb3236fab118d49e2722cf.tar.bz2 |
squash cast warning fix
Diffstat (limited to 'test/vds_swmr_gen.c')
-rw-r--r-- | test/vds_swmr_gen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/vds_swmr_gen.c b/test/vds_swmr_gen.c index 2589653..b14ecc2 100644 --- a/test/vds_swmr_gen.c +++ b/test/vds_swmr_gen.c @@ -145,11 +145,13 @@ main(void) if(H5Sselect_hyperslab(src_sid, H5S_SELECT_SET, start, NULL, MAX_DIMS[i], NULL) < 0) TEST_ERROR - start[1] = map_start; + start[1] = (hsize_t)map_start; if(H5Sselect_hyperslab(vds_sid, H5S_SELECT_SET, start, NULL, MAX_DIMS[i], NULL) < 0) TEST_ERROR - map_start += PLANES[i][1]; + if(PLANES[i][1] > INT_MAX) + TEST_ERROR + map_start += (int)PLANES[i][1]; /* Add VDS mapping */ if(H5Pset_virtual(vds_dcplid, vds_sid, FILE_NAMES[i], |