From 3eb8c81b8046d282ced9c2d94e7132058243013e Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 31 Aug 2007 14:55:43 -0500 Subject: [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 --- test/titerate.c | 8 ++++---- 1 file 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"); -- cgit v0.12