summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-11-27 21:08:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-11-27 21:08:29 (GMT)
commit03c994ee5921d46c7332b494844e55432f7bde31 (patch)
treeb6e998db33afc3ecbcb20765c08396825c72e342 /src/H5Odtype.c
parente40fa7aa3929e24934463562ed74859a6ebb5ddb (diff)
downloadhdf5-03c994ee5921d46c7332b494844e55432f7bde31.zip
hdf5-03c994ee5921d46c7332b494844e55432f7bde31.tar.gz
hdf5-03c994ee5921d46c7332b494844e55432f7bde31.tar.bz2
[svn-r12987] Description:
Clear up some confusion for the internal H5V_log2_gen() routine, so it always takes a 64-bit value as a parameter. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 27a8d2f..c0b29cf 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -222,7 +222,7 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
unsigned j;
/* Compute the # of bytes required to store a member offset */
- offset_nbytes = (H5V_log2_gen((hsize_t)dt->shared->size) + 7) / 8;
+ offset_nbytes = (H5V_log2_gen((uint64_t)dt->shared->size) + 7) / 8;
/*
* Compound datatypes...
@@ -720,7 +720,7 @@ H5O_dtype_encode_helper(const H5F_t *f, uint8_t **pp, const H5T_t *dt)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTENCODE, FAIL, "can't detect array class")
/* Compute the # of bytes required to store a member offset */
- offset_nbytes = (H5V_log2_gen((hsize_t)dt->shared->size) + 7) / 8;
+ offset_nbytes = (H5V_log2_gen((uint64_t)dt->shared->size) + 7) / 8;
/*
* Compound datatypes...
@@ -1123,7 +1123,7 @@ H5O_dtype_size(const H5F_t *f, const void *_mesg)
HDassert(has_array >= 0);
/* Compute the # of bytes required to store a member offset */
- offset_nbytes = (H5V_log2_gen((hsize_t)dt->shared->size) + 7) / 8;
+ offset_nbytes = (H5V_log2_gen((uint64_t)dt->shared->size) + 7) / 8;
/* Compute the total size needed to encode compound datatype */
for(u = 0; u < dt->shared->u.compnd.nmembs; u++) {