diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-07-06 18:37:52 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-07-06 18:37:52 (GMT) |
commit | 0b826837c0a9caeb7b4a94031b3b860e974c5cbd (patch) | |
tree | 0ba55d10e94293d1d9a79fc509d6df980bed9762 /tools/h5dumptst.c | |
parent | 9b042ac7f2c3f41e96acb3f2e43f62c044adef60 (diff) | |
download | hdf5-0b826837c0a9caeb7b4a94031b3b860e974c5cbd.zip hdf5-0b826837c0a9caeb7b4a94031b3b860e974c5cbd.tar.gz hdf5-0b826837c0a9caeb7b4a94031b3b860e974c5cbd.tar.bz2 |
[svn-r1428]
fixed some more bugs
Diffstat (limited to 'tools/h5dumptst.c')
-rw-r--r-- | tools/h5dumptst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5dumptst.c b/tools/h5dumptst.c index 3cd93bb..1f2a859 100644 --- a/tools/h5dumptst.c +++ b/tools/h5dumptst.c @@ -181,7 +181,7 @@ static void test_attribute(void) { hid_t fid, root, space, attr, type; hsize_t dims[2]; char buf[60]; -int i, data[20]; +int i, data[10]; double d[10]; char string[]= "string attribute"; int point = 100; @@ -204,7 +204,7 @@ int point = 100; dims[0] = 10; space = H5Screate_simple(1, dims, NULL); attr = H5Acreate (root, "attr2", H5T_STD_I32BE, space, H5P_DEFAULT); - for (i = 0; i < 20; i++) data[i] = i+1; + for (i = 0; i < 10; i++) data[i] = i+1; H5Awrite(attr, H5T_NATIVE_INT, data); H5Sclose(space); H5Aclose(attr); |