diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-05-18 18:04:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-05-18 18:04:25 (GMT) |
commit | cf07b7e6724821e1a5f83792ddea0a664121c7bc (patch) | |
tree | 2c82cee8513824fea517c2bcce9b5eb13242e7c1 /src | |
parent | ff8fd06fab8a17a30a5f9ea10384c90ef59f053d (diff) | |
download | hdf5-cf07b7e6724821e1a5f83792ddea0a664121c7bc.zip hdf5-cf07b7e6724821e1a5f83792ddea0a664121c7bc.tar.gz hdf5-cf07b7e6724821e1a5f83792ddea0a664121c7bc.tar.bz2 |
[svn-r12355] Purpose:
Bug fix
Description:
Avoid using double -> hsize_t conversion, to placate VS 6.0
Platforms tested:
None, just eyeballed...
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FS.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -642,7 +642,7 @@ HDfprintf(stderr, "%s: fspace->hdr->alloc_sect_size = %Hu\n", FUNC, fspace->hdr- /* Compute new size */ new_size = fspace->hdr->alloc_sect_size; while(new_size < fspace->hdr->sect_size) - new_size *= (double)fspace->hdr->expand_percent / 100.0; + new_size *= (float)fspace->hdr->expand_percent / (float)100.0; fspace->hdr->alloc_sect_size = new_size; /* Allocate space for the new indirect block on disk */ @@ -696,7 +696,7 @@ H5FS_sect_decrease(H5F_t *f, hid_t dxpl_id, H5FS_t *fspace) fspace->hdr->sect_size = H5FS_serialize_size(fspace); /* 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 = (fspace->hdr->alloc_sect_size * (float)fspace->hdr->shrink_percent) / (float)100.0; #ifdef QAK HDfprintf(stderr, "%s: fspace->hdr->sect_size = %Hu\n", FUNC, fspace->hdr->sect_size); @@ -721,7 +721,7 @@ HDfprintf(stderr, "%s: fspace->hdr->alloc_sect_size = %Hu\n", FUNC, fspace->hdr- while(fspace->hdr->sect_size < decrease_threshold) { new_size = decrease_threshold; - decrease_threshold *= (double)fspace->hdr->shrink_percent / 100.0; + decrease_threshold *= (float)fspace->hdr->shrink_percent / (float)100.0; } /* end while */ if(new_size < H5FS_SECT_SIZE_DEFAULT) new_size = H5FS_SECT_SIZE_DEFAULT; |