summaryrefslogtreecommitdiffstats
path: root/src/H5FS.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-05-18 18:04:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-05-18 18:04:25 (GMT)
commitcf07b7e6724821e1a5f83792ddea0a664121c7bc (patch)
tree2c82cee8513824fea517c2bcce9b5eb13242e7c1 /src/H5FS.c
parentff8fd06fab8a17a30a5f9ea10384c90ef59f053d (diff)
downloadhdf5-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/H5FS.c')
-rw-r--r--src/H5FS.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FS.c b/src/H5FS.c
index 7ed766f..ba8e025 100644
--- a/src/H5FS.c
+++ b/src/H5FS.c
@@ -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;