diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-05-23 00:45:49 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-05-23 00:45:49 (GMT) |
commit | 13c0f22b12fbe262faa2a442f4c84f8fcb800fe3 (patch) | |
tree | c833e6e2961498ba310dfa40f37f5d0e4ab2f786 /src/H5FS.c | |
parent | efe514d714294f9df3a2ad7aedb0001a16a4dfe2 (diff) | |
download | hdf5-13c0f22b12fbe262faa2a442f4c84f8fcb800fe3.zip hdf5-13c0f22b12fbe262faa2a442f4c84f8fcb800fe3.tar.gz hdf5-13c0f22b12fbe262faa2a442f4c84f8fcb800fe3.tar.bz2 |
[svn-r12364] Purpose:
Portability fix
Description:
Try again to placate the VS 6.0 compiler
Platforms tested:
Linux 2.4 (chicago)
Too minor to require h5committest
Diffstat (limited to 'src/H5FS.c')
-rw-r--r-- | src/H5FS.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1777,7 +1777,7 @@ HDfprintf(stderr, "%s: fspace->serial_size = %Zu\n", FUNC, fspace->serial_size); /* Check for no space on disk allocated for the serialized sections */ if(!H5F_addr_defined(fspace->hdr->sect_addr)) { /* Compute size to store sections on disk */ - fspace->hdr->alloc_sect_size = fspace->hdr->sect_size * (double)fspace->hdr->expand_percent / 100.0; + fspace->hdr->alloc_sect_size = (size_t)fspace->hdr->sect_size * (double)fspace->hdr->expand_percent / 100.0; /* Allocate space for the new serialized sections on disk */ if(HADDR_UNDEF == (fspace->hdr->sect_addr = H5MF_alloc(f, H5FD_MEM_FSPACE_SECTS, dxpl_id, (hsize_t)fspace->hdr->alloc_sect_size))) @@ -1818,7 +1818,7 @@ HDfprintf(stderr, "%s: fspace->hdr->alloc_sect_size = %Hu\n", FUNC, fspace->hdr- hsize_t new_size; /* New size of space for serialized sections */ /* Compute the threshold for decreasing the sections' serialized size */ - decrease_threshold = (fspace->hdr->alloc_sect_size * (double)fspace->hdr->shrink_percent) / 100.0; + decrease_threshold = ((size_t)fspace->hdr->alloc_sect_size * (double)fspace->hdr->shrink_percent) / 100.0; #ifdef QAK HDfprintf(stderr, "%s: fspace->hdr->sect_size = %Hu\n", FUNC, fspace->hdr->sect_size); |