From 6f0be2df0d0f1fe7007f4db9266daf1b58687b76 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Mon, 8 Mar 2004 15:09:52 -0500 Subject: [svn-r8239] Purpose: Brought back changes from 1.6 branch (small bug fix) Description: Wrong datatype was used to calculate the size of data buffer Solution: Used correct the datatype Platforms tested: partially h5comittested (sol and verbena); tested manually for sequential version on copper Misc. update: --- test/th5s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/th5s.c b/test/th5s.c index 2f8a19a..570583a 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