summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-08-09 20:23:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-08-09 20:23:28 (GMT)
commitd48558126d9c19fe3b418a22086a015bd56997f9 (patch)
treefc50bbeaf501c08c356a572558654d1c065abd15 /src/H5F.c
parenta7028fb006be7d91626650f22748d22a1a74f6ee (diff)
downloadhdf5-d48558126d9c19fe3b418a22086a015bd56997f9.zip
hdf5-d48558126d9c19fe3b418a22086a015bd56997f9.tar.gz
hdf5-d48558126d9c19fe3b418a22086a015bd56997f9.tar.bz2
[svn-r5866] Purpose:
Code cleanup Description: Cleaned up a few warnings from compiling with --disable-hsizet on Linux Platforms tested: Linux 2.2.x (eirene)
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 5f70972..1977033 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2460,6 +2460,7 @@ H5F_flush(H5F_t *f, H5F_scope_t scope, hbool_t invalidate,
} /* end if */
if (alloc_only) {
+ haddr_t addr;
/*
* Allocate space for the userblock, superblock, and driver info
* block. We do it with one allocation request because the userblock
@@ -2467,10 +2468,9 @@ H5F_flush(H5F_t *f, H5F_scope_t scope, hbool_t invalidate,
* the first allocation request is required to return memory at
* format address zero.
*/
- haddr_t addr = H5FD_alloc(f->shared->lf, H5FD_MEM_SUPER,
- (f->shared->base_addr +
- superblock_size +
- driver_size));
+ H5_CHECK_OVERFLOW(f->shared->base_addr,haddr_t,hsize_t);
+ addr = H5FD_alloc(f->shared->lf, H5FD_MEM_SUPER,
+ ((hsize_t)f->shared->base_addr + superblock_size + driver_size));
if (HADDR_UNDEF==addr)
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to allocate file space for userblock and/or superblock");
if (0!=addr)