diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-07 20:19:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-07 20:19:41 (GMT) |
commit | e87cb9148356b581d8ff8a910ea3acc9d549ee7a (patch) | |
tree | b4a8910040dccd553a23fe831b4f5f1e1798071e /src/H5FSsection.c | |
parent | 53357538de48331d44345e8b91020c84fc144e9c (diff) | |
download | hdf5-e87cb9148356b581d8ff8a910ea3acc9d549ee7a.zip hdf5-e87cb9148356b581d8ff8a910ea3acc9d549ee7a.tar.gz hdf5-e87cb9148356b581d8ff8a910ea3acc9d549ee7a.tar.bz2 |
[svn-r12877] Description:
Clean up more compiler warnings.
Tested on:
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5FSsection.c')
-rw-r--r-- | src/H5FSsection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FSsection.c b/src/H5FSsection.c index 024aa88..e6a07b7 100644 --- a/src/H5FSsection.c +++ b/src/H5FSsection.c @@ -1333,7 +1333,7 @@ HDfprintf(stderr, "%s: fspace->alloc_sect_size = %Hu\n", FUNC, fspace->alloc_sec HGOTO_ERROR(H5E_FSPACE, H5E_CANTFREE, FAIL, "unable to free free space sections") /* Compute new size */ - new_size = fspace->alloc_sect_size; + H5_ASSIGN_OVERFLOW(/* To: */ new_size, /* From: */ fspace->alloc_sect_size, /* From: */ hsize_t, /* To: */ size_t); while(new_size < fspace->sect_size) new_size *= (double)fspace->expand_percent / 100.0; fspace->alloc_sect_size = new_size; @@ -1369,7 +1369,7 @@ HDfprintf(stderr, "%s: old_addr = %a, fspace->sect_addr = %a\n", FUNC, old_addr, haddr_t old_addr; /* Old address of serialized sections */ /* Compute the threshold for decreasing the sections' serialized size */ - decrease_threshold = ((size_t)fspace->alloc_sect_size * (double)fspace->shrink_percent) / 100.0; + decrease_threshold = (size_t)(((size_t)fspace->alloc_sect_size * (double)fspace->shrink_percent) / 100.0); if(fspace->alloc_sect_size > H5FS_SINFO_SIZE_DEFAULT && fspace->sect_size < decrease_threshold) { |