summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-10-03 19:29:17 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-10-03 19:29:17 (GMT)
commit595b2e59fa484404c853bd035f29b5dcd19f4e98 (patch)
tree0889c09adeede4e390e5baa0c736ccc9d91484ec
parentb1d6057bb136bb2b2b24653be2654729987359a8 (diff)
downloadhdf5-595b2e59fa484404c853bd035f29b5dcd19f4e98.zip
hdf5-595b2e59fa484404c853bd035f29b5dcd19f4e98.tar.gz
hdf5-595b2e59fa484404c853bd035f29b5dcd19f4e98.tar.bz2
[svn-r25664] merge 25661 from trunk.
Update the default setting for the memb_addr array when use passes NULL to equally divide all the address space between all the members. Before there was one chunk of the address space not being used.
-rw-r--r--src/H5FDmulti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index 2c1984d..c0cab02 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -490,7 +490,7 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map,
}
if (!memb_addr) {
for (mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; mt=(H5FD_mem_t)(mt+1))
- _memb_addr[mt] = (hsize_t)(mt ? (mt - 1) : 0) * (HADDR_MAX / H5FD_MEM_NTYPES);
+ _memb_addr[mt] = (hsize_t)(mt ? (mt - 1) : 0) * (HADDR_MAX / (H5FD_MEM_NTYPES-1));
memb_addr = _memb_addr;
}