diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-08-09 20:23:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-08-09 20:23:28 (GMT) |
commit | d48558126d9c19fe3b418a22086a015bd56997f9 (patch) | |
tree | fc50bbeaf501c08c356a572558654d1c065abd15 /src/H5FDfamily.c | |
parent | a7028fb006be7d91626650f22748d22a1a74f6ee (diff) | |
download | hdf5-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/H5FDfamily.c')
-rw-r--r-- | src/H5FDfamily.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c index bd7e621..db43cae 100644 --- a/src/H5FDfamily.c +++ b/src/H5FDfamily.c @@ -794,16 +794,18 @@ H5FD_family_set_eoa(H5FD_t *_file, haddr_t eoa) file->nmembs = MAX(file->nmembs, i+1); sprintf(memb_name, file->name, i); H5E_BEGIN_TRY { + H5_CHECK_OVERFLOW(file->memb_size,hsize_t,haddr_t); file->memb[i] = H5FDopen(memb_name, file->flags|H5F_ACC_CREAT, - file->memb_fapl_id, file->memb_size); + file->memb_fapl_id, (haddr_t)file->memb_size); } H5E_END_TRY; if (NULL==file->memb[i]) HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "unable to open member file"); } /* Set the EOA marker for the member */ - if (addr>file->memb_size) { - H5FDset_eoa(file->memb[i], file->memb_size); + H5_CHECK_OVERFLOW(file->memb_size,hsize_t,haddr_t); + if (addr>(haddr_t)file->memb_size) { + H5FDset_eoa(file->memb[i], (haddr_t)file->memb_size); addr -= file->memb_size; } else { H5FDset_eoa(file->memb[i], addr); |