diff options
Diffstat (limited to 'src/H5O.c')
-rw-r--r-- | src/H5O.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4303,8 +4303,10 @@ H5O_copy_header_real(const H5O_loc_t *oloc_src, addr_map->is_locked = FALSE; /* Increment object header's reference count, if any descendents have created links to link to this object */ - if(addr_map->inc_ref_count) - oh_dst->nlink += addr_map->inc_ref_count; + if(addr_map->inc_ref_count) { + H5_CHECK_OVERFLOW(addr_map->inc_ref_count, hsize_t, int); + oh_dst->nlink += (int)addr_map->inc_ref_count; + } /* end if */ /* Insert destination object header in cache */ if(H5AC_set(oloc_dst->file, dxpl_id, H5AC_OHDR, oloc_dst->addr, oh_dst, H5AC__DIRTIED_FLAG) < 0) |