From 2bb3534b8ffc939037555b1a529f885fdf9613f9 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Mon, 8 Mar 2004 12:54:06 -0500 Subject: [svn-r8238] Purpose: A small bug fix Description: Wrong datatype (unsigned instead of hsize_t) was used to calculate the length of the buffer that hold the data. As a result, only part of the data was compared with the original data. Solution: Use the correct datatype. Platforms tested: Tried h5committest, but forgot to do it on AFS. As a resulti, only verbena test was completed. I decided to go ahead and check the change in and do it correctly for the development branch (later today). Misc. update: --- test/th5s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/th5s.c b/test/th5s.c index 3404d40..95681c2 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -112,7 +112,7 @@ test_h5s_basic(void) rank = H5Sget_simple_extent_dims(sid1, tdims, NULL); CHECK(rank, FAIL, "H5Sget_simple_extent_dims"); - VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(unsigned)), 0, + VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims"); sid2 = H5Screate_simple(SPACE2_RANK, dims2, max2); @@ -129,9 +129,9 @@ test_h5s_basic(void) rank = H5Sget_simple_extent_dims(sid2, tdims, tmax); CHECK(rank, FAIL, "H5Sget_simple_extent_dims"); - VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(unsigned)), 0, + VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims"); - VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(unsigned)), 0, + VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims"); ret = H5Sclose(sid1); -- cgit v0.12