summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-31 19:55:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-31 19:55:43 (GMT)
commit3eb8c81b8046d282ced9c2d94e7132058243013e (patch)
treee0c8efc8daff8e14d44fe5bc85fed8997ee39618 /test
parente4f358746faa2b18f47668781567e5ea55da034b (diff)
downloadhdf5-3eb8c81b8046d282ced9c2d94e7132058243013e.zip
hdf5-3eb8c81b8046d282ced9c2d94e7132058243013e.tar.gz
hdf5-3eb8c81b8046d282ced9c2d94e7132058243013e.tar.bz2
[svn-r14134] Description:
Cast usage of hsize_t variable as array index into size_t. Tested on: Linux/32 2.6 (kagiso) w/PGU compilers
Diffstat (limited to 'test')
-rw-r--r--test/titerate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/titerate.c b/test/titerate.c
index c2a3b94..3c27bdd 100644
--- a/test/titerate.c
+++ b/test/titerate.c
@@ -303,8 +303,8 @@ test_iter_group(hid_t fapl, hbool_t new_format)
TestErrPrintf("Group iteration function walked too far!\n");
/* Verify that the correct name is retrieved */
- if(HDstrcmp(info.name, lnames[idx - 1]) != 0)
- TestErrPrintf("Group iteration function didn't return name correctly for link - lnames[%u] = '%s'!\n", (idx - 1), lnames[idx - 1]);
+ if(HDstrcmp(info.name, lnames[(size_t)(idx - 1)]) != 0)
+ TestErrPrintf("Group iteration function didn't return name correctly for link - lnames[%u] = '%s'!\n", (unsigned)(idx - 1), lnames[(size_t)(idx - 1)]);
} /* end while */
VERIFY(ret, -1, "H5Literate");
@@ -328,8 +328,8 @@ test_iter_group(hid_t fapl, hbool_t new_format)
TestErrPrintf("Group iteration function walked too far!\n");
/* Verify that the correct name is retrieved */
- if(HDstrcmp(info.name, lnames[idx - 1]) != 0)
- TestErrPrintf("Group iteration function didn't return name correctly for link - lnames[%u] = '%s'!\n", (idx - 1), lnames[idx - 1]);
+ if(HDstrcmp(info.name, lnames[(size_t)(idx - 1)]) != 0)
+ TestErrPrintf("Group iteration function didn't return name correctly for link - lnames[%u] = '%s'!\n", (unsigned)(idx - 1), lnames[(size_t)(idx - 1)]);
} /* end while */
VERIFY(ret, -1, "H5Literate");