summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-01-03 19:44:58 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-01-03 19:44:58 (GMT)
commit2b429323f9e15e83068e5717e138774b1eb3430e (patch)
tree2b9573c57602f9abc513b7d8033b4466d09809db /tools
parent0926974a6362bf85e5f8bb30132a0fd964ff7ea7 (diff)
downloadhdf5-2b429323f9e15e83068e5717e138774b1eb3430e.zip
hdf5-2b429323f9e15e83068e5717e138774b1eb3430e.tar.gz
hdf5-2b429323f9e15e83068e5717e138774b1eb3430e.tar.bz2
[svn-r4770]
Purpose: data type match Description: T3E needs the data type of array to be exactly matched. Solution: Use force-casted to match int32 to hsize_t. Platforms tested:
Diffstat (limited to 'tools')
-rw-r--r--tools/h4toh5/h4toh5image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h4toh5/h4toh5image.c b/tools/h4toh5/h4toh5image.c
index a1ab359..d8a544f 100644
--- a/tools/h4toh5/h4toh5image.c
+++ b/tools/h4toh5/h4toh5image.c
@@ -304,10 +304,10 @@ int Image_h4_to_h5(int32 file_id,int32 ri_id,hid_t h5_group,hid_t h5_palgroup,in
provide a chunking size. currently it is set to h5dim[i].*/
if(ncomp == 1) {
- chunk_dims[0] = (hsize_t)(h5dims[0]);
- chunk_dims[1] =(hsize_t)(h5dims[1]);
+ chunk_dims[0] = h5dims[0];
+ chunk_dims[1] = h5dims[1];
- if(H5Pset_chunk(create_plist, 2, chunk_dims)<0) {
+ if(H5Pset_chunk(create_plist, 2, (hsize_t *)chunk_dims)<0) {
printf("failed to set up chunking information for ");
printf("property list.\n");
free(image_data);
@@ -342,7 +342,7 @@ int Image_h4_to_h5(int32 file_id,int32 ri_id,hid_t h5_group,hid_t h5_palgroup,in
chunk_dims24[1] = edges[0]-start[0];
chunk_dims24[2] = 3;
}
- if(H5Pset_chunk(create_plist, 3, chunk_dims24)<0) {
+ if(H5Pset_chunk(create_plist, 3, (hsize_t *)chunk_dims24)<0) {
printf("failed to set up chunking information for ");
printf("property list.\n");
free(image_data);