summaryrefslogtreecommitdiffstats
path: root/src/H5HG.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5HG.c')
-rw-r--r--src/H5HG.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index bfafd46..99dd289 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -265,8 +265,7 @@ H5HG_load (H5F_t *f, haddr_t addr, const void UNUSED *udata1,
* collection now.
*/
if (heap->size > H5HG_MINSIZE) {
- haddr_t next_addr = addr;
- H5F_addr_inc (&next_addr, (hsize_t)H5HG_MINSIZE);
+ haddr_t next_addr = addr + (hsize_t)H5HG_MINSIZE;
if (NULL==(heap->chunk = H5MM_realloc (heap->chunk, heap->size))) {
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL,
"memory allocation failed");