summaryrefslogtreecommitdiffstats
path: root/src/H5Dvirtual.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-08-18 13:00:54 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-08-18 13:00:54 (GMT)
commit057cd67021b32a06707d91916f3aac7ed24faff6 (patch)
treeb8dd771dd9c5b90138a165e659a90c38b8d01d3b /src/H5Dvirtual.c
parent433078bc80c9516fb0d79b3602ff1fe66d28c04c (diff)
parent7b48e3409a8c3ba1e83c929656e84196a6dc2e6d (diff)
downloadhdf5-057cd67021b32a06707d91916f3aac7ed24faff6.zip
hdf5-057cd67021b32a06707d91916f3aac7ed24faff6.tar.gz
hdf5-057cd67021b32a06707d91916f3aac7ed24faff6.tar.bz2
Merge pull request #2735 in HDFFV/hdf5 from ~DYOUNG/werror:virtual-write-one to develop
* commit '7b48e3409a8c3ba1e83c929656e84196a6dc2e6d': Fix a bug in H5D__virtual_write_one to stop an assertion from failing deep in H5Dwrite---project the *clipped* virtual selection instead of the virtual selection:
Diffstat (limited to 'src/H5Dvirtual.c')
-rw-r--r--src/H5Dvirtual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dvirtual.c b/src/H5Dvirtual.c
index 799ee2b..cda73cc 100644
--- a/src/H5Dvirtual.c
+++ b/src/H5Dvirtual.c
@@ -2781,7 +2781,7 @@ H5D__virtual_write_one(H5D_io_info_t *io_info, const H5D_type_info_t *type_info,
* extent in the unlimited dimension. -NAF */
/* Project intersection of file space and mapping virtual space onto
* mapping source space */
- if(H5S_select_project_intersection(source_dset->virtual_select, source_dset->clipped_source_select, file_space, &projected_src_space, TRUE) < 0)
+ if(H5S_select_project_intersection(source_dset->clipped_virtual_select, source_dset->clipped_source_select, file_space, &projected_src_space, TRUE) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTCLIP, FAIL, "can't project virtual intersection onto source space")
/* Perform write on source dataset */