summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-30 14:57:09 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-30 14:57:09 (GMT)
commit0a7b2071a0589bef1abf8fd1b2f7cd470312d7f9 (patch)
tree2238f4f9c80f1d2123e1ccbcb5429787dbbf9c20 /test
parente6e056ebbda3ba4165e179bb724c03831009ee9b (diff)
downloadhdf5-0a7b2071a0589bef1abf8fd1b2f7cd470312d7f9.zip
hdf5-0a7b2071a0589bef1abf8fd1b2f7cd470312d7f9.tar.gz
hdf5-0a7b2071a0589bef1abf8fd1b2f7cd470312d7f9.tar.bz2
[svn-r203] Changed H5Pcreate_simple call...
Diffstat (limited to 'test')
-rw-r--r--test/cmpd_dset.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c
index 25742f6..dc2231b 100644
--- a/test/cmpd_dset.c
+++ b/test/cmpd_dset.c
@@ -125,8 +125,8 @@ main (void)
herr_t status;
static size_t dim[] = {NX, NY};
int f_offset[2]; /*offset of hyperslab in file */
- int h_size[2]; /*size of hyperslab */
- int h_sample[2]; /*hyperslab sampling */
+ size_t h_size[2]; /*size of hyperslab */
+ size_t h_sample[2]; /*hyperslab sampling */
/* Create the file */
file = H5Fcreate ("cmpd_dset.h5", H5ACC_OVERWRITE,
@@ -395,13 +395,7 @@ STEP 8: Read middle third hyperslab into memory array.\n");
assert (status>=0);
/* Create memory data space */
- { /* H5Pcreate_simple expects dimsize be size_t type. */
- /* Use a temporary array. A kludge--need to fix hyperslab */
- /* argument types later. */
- size_t tdim[2];
- tdim[0] = h_size[0];
- tdim[1] = h_size[1];
- s8_m_sid = H5Pcreate_simple (2, tdim);
+ s8_m_sid = H5Pcreate_simple (2, h_size);
assert (s8_m_sid>=0);
}