summaryrefslogtreecommitdiffstats
path: root/src/H5Z.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-05-19 04:34:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-05-19 04:34:02 (GMT)
commit2adc43f81221954e16da3338445323f1e4d958ad (patch)
tree351ed14f7469382748a18237512c41def64233bb /src/H5Z.c
parent12c5e315c5090f32e0683b588ab3b8a2327da948 (diff)
downloadhdf5-2adc43f81221954e16da3338445323f1e4d958ad.zip
hdf5-2adc43f81221954e16da3338445323f1e4d958ad.tar.gz
hdf5-2adc43f81221954e16da3338445323f1e4d958ad.tar.bz2
[svn-r15034] Description:
Correct another case of using 'size_t' for chunk sizes where 'uint32_t' was necessary. Tested on: FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN
Diffstat (limited to 'src/H5Z.c')
-rw-r--r--src/H5Z.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Z.c b/src/H5Z.c
index de26831..cbd2f3e 100644
--- a/src/H5Z.c
+++ b/src/H5Z.c
@@ -499,7 +499,7 @@ H5Z_prelude_callback(hid_t dcpl_id, hid_t type_id, H5Z_prelude_type_t prelude_ty
/* Check if the chunks have filters */
if(dcpl_pline.nused > 0) {
unsigned chunk_ndims; /* # of chunk dimensions */
- size_t chunk_size[H5O_LAYOUT_NDIMS]; /* Size of chunk dimensions */
+ uint32_t chunk_size[H5O_LAYOUT_NDIMS]; /* Size of chunk dimensions */
hsize_t chunk_dims[H5O_LAYOUT_NDIMS]; /* Size of chunk dimensions */
H5S_t *space; /* Dataspace describing chunk */
hid_t space_id; /* ID for dataspace describing chunk */
@@ -512,8 +512,8 @@ H5Z_prelude_callback(hid_t dcpl_id, hid_t type_id, H5Z_prelude_type_t prelude_ty
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't retrieve chunk size")
/* Create a data space for a chunk & set the extent */
- for(u=0; u<chunk_ndims; u++)
- chunk_dims[u]=chunk_size[u];
+ for(u = 0; u < chunk_ndims; u++)
+ chunk_dims[u] = chunk_size[u];
if(NULL == (space = H5S_create_simple(chunk_ndims,chunk_dims,NULL)))
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCREATE, FAIL, "can't create simple dataspace")