diff options
-rw-r--r-- | src/H5Ocache.c | 2 | ||||
-rw-r--r-- | src/H5Opkg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Ocache.c b/src/H5Ocache.c index 3ef502b..23f714a 100644 --- a/src/H5Ocache.c +++ b/src/H5Ocache.c @@ -209,7 +209,7 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1, UINT32DECODE(p, chunk_size); /* build the message array */ - oh->alloc_nmesgs = MAX(H5O_NMESGS, nmesgs); + oh->alloc_nmesgs = nmesgs; if (NULL==(oh->mesg=H5FL_SEQ_CALLOC(H5O_mesg_t,(size_t)oh->alloc_nmesgs))) HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); diff --git a/src/H5Opkg.h b/src/H5Opkg.h index 35fc5f9..56353ed 100644 --- a/src/H5Opkg.h +++ b/src/H5Opkg.h @@ -35,7 +35,7 @@ /* Object header macros */ #define H5O_NMESGS 32 /*initial number of messages */ -#define H5O_NCHUNKS 8 /*initial number of chunks */ +#define H5O_NCHUNKS 2 /*initial number of chunks */ /* Version of object header structure */ #define H5O_VERSION 1 |