summaryrefslogtreecommitdiffstats
path: root/src/H5FScache.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-04-22 20:04:44 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-04-22 20:04:44 (GMT)
commit683d60460a94869225094b4efc824258c5b0dcd3 (patch)
tree92f6400d0c7f80046231ad46048227cdf4940a34 /src/H5FScache.c
parentcacfe71beb159fc44df256f641d4faac594c802e (diff)
downloadhdf5-683d60460a94869225094b4efc824258c5b0dcd3.zip
hdf5-683d60460a94869225094b4efc824258c5b0dcd3.tar.gz
hdf5-683d60460a94869225094b4efc824258c5b0dcd3.tar.bz2
[svn-r18617] Description:
Bring r18616 from trunk to 1.8 branch: Clean up compiler warnings. Tested on: Mac OS X/32 10.6.3 (amazon) w/debug (too minor to require h5committest)
Diffstat (limited to 'src/H5FScache.c')
-rw-r--r--src/H5FScache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FScache.c b/src/H5FScache.c
index 9e5f2b9..739f964 100644
--- a/src/H5FScache.c
+++ b/src/H5FScache.c
@@ -177,7 +177,7 @@ H5FS_cache_hdr_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void *_fs_prot,
HGOTO_ERROR(H5E_FSPACE, H5E_CANTINIT, NULL, "can't wrap buffer")
/* Compute the size of the free space header on disk */
- size = H5FS_HEADER_SIZE(f);
+ size = (size_t)H5FS_HEADER_SIZE(f);
/* Get a pointer to a buffer that's large enough for header */
if(NULL == (hdr = (uint8_t *)H5WB_actual(wb, size)))
@@ -355,7 +355,7 @@ H5FS_cache_hdr_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5F
HGOTO_ERROR(H5E_FSPACE, H5E_CANTINIT, FAIL, "can't wrap buffer")
/* Compute the size of the free space header on disk */
- size = H5FS_HEADER_SIZE(f);
+ size = (size_t)H5FS_HEADER_SIZE(f);
/* Get a pointer to a buffer that's large enough for header */
if(NULL == (hdr = (uint8_t *)H5WB_actual(wb, size)))
@@ -549,7 +549,7 @@ H5FS_cache_hdr_size(const H5F_t *f, const H5FS_t UNUSED *fspace, size_t *size_pt
HDassert(size_ptr);
/* Set size value */
- *size_ptr = H5FS_HEADER_SIZE(f);
+ *size_ptr = (size_t)H5FS_HEADER_SIZE(f);
FUNC_LEAVE_NOAPI(SUCCEED)
} /* H5FS_cache_hdr_size() */