summaryrefslogtreecommitdiffstats
path: root/test/tsohm.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-03-27 03:06:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-03-27 03:06:48 (GMT)
commitc64ac252cdd9fe40b96313e2435551f16428b9d6 (patch)
tree9ff6633ac3ee8fe9529620a0ecfc99bbbab451f8 /test/tsohm.c
parentddf436469153cc5deb7cadfdb9a1b985c605774f (diff)
downloadhdf5-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/tsohm.c')
-rw-r--r--test/tsohm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tsohm.c b/test/tsohm.c
index d0c0629..010311f 100644
--- a/test/tsohm.c
+++ b/test/tsohm.c
@@ -971,7 +971,7 @@ static void sohm_attr_helper(hid_t fcpl_id)
int wdata[2] = {7, 42};
int rdata[2];
herr_t ret;
- hsize_t x;
+ size_t x;
/* Create a file using the fcpl */
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, fcpl_id, H5P_DEFAULT);
@@ -1005,7 +1005,7 @@ static void sohm_attr_helper(hid_t fcpl_id)
memset(rdata, 0, sizeof(rdata));
ret = H5Aread(attr_id, H5T_NATIVE_INT, rdata);
CHECK_I(ret, "H5Aread");
- for(x=0; x<dims; ++x) {
+ for(x=0; x<(size_t)dims; ++x) {
VERIFY(rdata[x], wdata[x], "H5Aread");
}
@@ -1041,7 +1041,7 @@ static void sohm_attr_helper(hid_t fcpl_id)
memset(rdata, 0, sizeof(rdata));
ret = H5Aread(attr_id, H5T_NATIVE_INT, rdata);
CHECK_I(ret, "H5Aread");
- for(x=0; x<dims; ++x) {
+ for(x=0; x<(size_t)dims; ++x) {
VERIFY(rdata[x], wdata[x], "H5Aread");
}