summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-12-08 18:34:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-12-08 18:34:51 (GMT)
commit88c15b1617872ce1672d7333481a5aa32ee23d5a (patch)
treeb3315150ab77826194626d3cd5cf6481badf83e4 /src/H5O.c
parentbfa65eed0f4f901c14244728ea364966c51e0417 (diff)
downloadhdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.zip
hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.tar.gz
hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.tar.bz2
[svn-r11771] Purpose:
Code cleanup Description: Fix a bunch of warnings flagged by Windows compilers. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5O.c b/src/H5O.c
index b047bdd..401473f 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -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)