mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[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
This commit is contained in:
parent
efe514d714
commit
13c0f22b12
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user