summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5Shyper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 5667cbd..e177d7d 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -9607,7 +9607,7 @@ H5S_hyper_clip_unlim(H5S_t *space, hsize_t clip_size)
/* Calculate actual block size for this clip size */
hslab->opt_diminfo[hslab->unlim_dim].block =
- (hsize_t)((hssize_t)space->extent.size[hslab->unlim_dim]
+ (hsize_t)((hssize_t)clip_size
- ((hssize_t)hslab->opt_diminfo[hslab->unlim_dim].start
+ space->select.offset[hslab->unlim_dim]));