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/dtypes.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/dtypes.c')
-rw-r--r-- | test/dtypes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dtypes.c b/test/dtypes.c index e32a0a9..75dde75 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -2589,7 +2589,7 @@ test_named (hid_t fapl) hid_t file=-1, type=-1, space=-1, dset=-1, t2=-1, t3=-1, attr1=-1; herr_t status; static hsize_t ds_size[2] = {10, 20}; - hsize_t i,j; + size_t i,j; unsigned attr_data[10][20]; char filename[1024]; @@ -2645,8 +2645,8 @@ test_named (hid_t fapl) /* It should be possible to define an attribute for the named type */ if ((attr1=H5Acreate (type, "attr1", H5T_NATIVE_UCHAR, space, H5P_DEFAULT))<0) goto error; - for (i=0; i<ds_size[0]; i++) - for (j=0; j<ds_size[1]; j++) + for (i=0; i<(size_t)ds_size[0]; i++) + for (j=0; j<(size_t)ds_size[1]; j++) attr_data[i][j] = (int)(i*ds_size[1]+j); if (H5Awrite(attr1, H5T_NATIVE_UINT, attr_data)<0) goto error; if (H5Aclose (attr1)<0) goto error; |