summaryrefslogtreecommitdiffstats
path: root/src/H5Distore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Distore.c')
-rw-r--r--src/H5Distore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Distore.c b/src/H5Distore.c
index 7f3fb7f..a4d415c 100644
--- a/src/H5Distore.c
+++ b/src/H5Distore.c
@@ -1181,7 +1181,8 @@ H5F_istore_lock (H5F_t *f, const H5O_layout_t *layout,
assert(split_ratios);
if (rdcc->nslots>0) {
- idx = layout->addr.offset;
+ /* We don't care about loss of precision in the following statement. */
+ idx = (uintn)(layout->addr.offset);
H5F_MIXUP(idx);
for (i=0; i<layout->ndims; i++) {
idx += offset[i];