diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-27 03:06:48 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-27 03:06:48 (GMT) |
commit | c64ac252cdd9fe40b96313e2435551f16428b9d6 (patch) | |
tree | 9ff6633ac3ee8fe9529620a0ecfc99bbbab451f8 /test/flush1.c | |
parent | ddf436469153cc5deb7cadfdb9a1b985c605774f (diff) | |
download | hdf5-c64ac252cdd9fe40b96313e2435551f16428b9d6.zip hdf5-c64ac252cdd9fe40b96313e2435551f16428b9d6.tar.gz hdf5-c64ac252cdd9fe40b96313e2435551f16428b9d6.tar.bz2 |
[svn-r13549] Description:
Check in changes from Elena and I to get pgcc compiler working again.
Primarily (all?) changes to move from using 'hsize_t' as array index to using
something else ('size_t') mostly.
Tested on:
Linux/32 2.4 kagiso w/pgcc
Diffstat (limited to 'test/flush1.c')
-rw-r--r-- | test/flush1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/flush1.c b/test/flush1.c index 2086e3f..5f8eefc 100644 --- a/test/flush1.c +++ b/test/flush1.c @@ -56,7 +56,7 @@ create_file(char* name, hid_t fapl) hid_t file, dcpl, space, dset, groups, grp; hsize_t ds_size[2] = {100, 100}; hsize_t ch_size[2] = {5, 5}; - hsize_t i, j; + size_t i, j; if ((file=H5Fcreate(name, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0) goto error; @@ -74,7 +74,7 @@ create_file(char* name, hid_t fapl) * for the Win32 version 5.0 compiler. * 1998-11-06 ptl */ - for (j=0; j<ds_size[1]; j++) { + for (j=0; j<(size_t)ds_size[1]; j++) { the_data[i][j] = (double)(hssize_t)i/(hssize_t)(j+1); } } @@ -119,7 +119,7 @@ extend_file(hid_t file) hid_t dcpl, space, dset; hsize_t ds_size[2] = {100, 100}; hsize_t ch_size[2] = {5, 5}; - hsize_t i, j; + size_t i, j; /* Create a chunked dataset */ if ((dcpl=H5Pcreate(H5P_DATASET_CREATE))<0) goto error; @@ -135,7 +135,7 @@ extend_file(hid_t file) * for the Win32 version 5.0 compiler. * 1998-11-06 ptl */ - for (j=0; j<ds_size[1]; j++) { + for (j=0; j<(size_t)ds_size[1]; j++) { the_data[i][j] = (double)(hssize_t)i/(hssize_t)(j+1); } } |