diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-05-29 19:54:49 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-05-29 19:54:49 (GMT) |
commit | 0dfddee5a1db3ea096fb6fa358f8d0b3f15ae983 (patch) | |
tree | 42e57946bb179fa8f00d4184fa43ea0e9a2a0b7e /src/H5B2cache.c | |
parent | a67f73add8e9d8d40b71ad59434c00a606f9bec8 (diff) | |
download | hdf5-0dfddee5a1db3ea096fb6fa358f8d0b3f15ae983.zip hdf5-0dfddee5a1db3ea096fb6fa358f8d0b3f15ae983.tar.gz hdf5-0dfddee5a1db3ea096fb6fa358f8d0b3f15ae983.tar.bz2 |
Normalization with develop in the MD cache clients.
Diffstat (limited to 'src/H5B2cache.c')
-rw-r--r-- | src/H5B2cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5B2cache.c b/src/H5B2cache.c index 65286e6..80cb6c5 100644 --- a/src/H5B2cache.c +++ b/src/H5B2cache.c @@ -654,6 +654,7 @@ H5B2__cache_int_deserialize(const void *_image, size_t H5_ATTR_UNUSED len, uint32_t stored_chksum; /* Stored metadata checksum value */ unsigned u; /* Local index variable */ H5B2_internal_t *ret_value = NULL; /* Return value */ + int node_nrec = 0; FUNC_ENTER_STATIC @@ -716,7 +717,8 @@ H5B2__cache_int_deserialize(const void *_image, size_t H5_ATTR_UNUSED len, for(u = 0; u < (unsigned)(internal->nrec + 1); u++) { /* Decode node pointer */ H5F_addr_decode(udata->f, (const uint8_t **)&image, &(int_node_ptr->addr)); - UINT64DECODE_VAR(image, int_node_ptr->node_nrec, udata->hdr->max_nrec_size); + UINT64DECODE_VAR(image, node_nrec, udata->hdr->max_nrec_size); + H5_CHECKED_ASSIGN(int_node_ptr->node_nrec, uint16_t, node_nrec, int); if(udata->depth > 1) UINT64DECODE_VAR(image, int_node_ptr->all_nrec, udata->hdr->node_info[udata->depth - 1].cum_max_nrec_size) else |