diff options
Diffstat (limited to 'test/th5p.c')
-rw-r--r-- | test/th5p.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/th5p.c b/test/th5p.c index a39f7de..eb8528b 100644 --- a/test/th5p.c +++ b/test/th5p.c @@ -58,7 +58,7 @@ static void test_h5p_basic(void) hid_t fid1; /* HDF5 File IDs */ hid_t sid1,sid2; /* Dataspace ID */ uint32 rank; /* Logical rank of dataspace */ - uint32 dims1[]={SPACE1_DIM1,SPACE1_DIM2,SPACE1_DIM3}, /* dataspace dim sizes */ + size_t dims1[]={SPACE1_DIM1,SPACE1_DIM2,SPACE1_DIM3}, /* dataspace dim sizes */ dims2[]={SPACE2_DIM1,SPACE2_DIM2,SPACE2_DIM3,SPACE2_DIM4}, tdims[4]; /* Dimension array to test with */ uintn n; /* number of dataspace elements */ @@ -81,11 +81,11 @@ static void test_h5p_basic(void) CHECK(n,UFAIL,"H5Pnelem"); VERIFY(n,SPACE1_DIM1*SPACE1_DIM2*SPACE1_DIM3,"H5Pnelem"); - rank=H5Pget_lrank(sid1); + rank=H5Pget_ndims(sid1); CHECK(rank,UFAIL,"H5Pget_lrank"); VERIFY(rank,SPACE1_RANK,"H5Pget_lrank"); - ret=H5Pget_ldims(sid1,tdims); + ret=H5Pget_dims(sid1,tdims); CHECK(ret,FAIL,"H5Pget_ldims"); VERIFY(HDmemcmp(tdims,dims1,SPACE1_RANK*sizeof(uint32)),0,"H5Pget_ldims"); @@ -99,11 +99,11 @@ static void test_h5p_basic(void) CHECK(n,UFAIL,"H5Pnelem"); VERIFY(n,SPACE2_DIM1*SPACE2_DIM2*SPACE2_DIM3*SPACE2_DIM4,"H5Pnelem"); - rank=H5Pget_lrank(sid2); + rank=H5Pget_ndims(sid2); CHECK(rank,UFAIL,"H5Pget_lrank"); VERIFY(rank,SPACE2_RANK,"H5Pget_lrank"); - ret=H5Pget_ldims(sid2,tdims); + ret=H5Pget_dims(sid2,tdims); CHECK(ret,FAIL,"H5Pget_ldims"); VERIFY(HDmemcmp(tdims,dims2,SPACE2_RANK*sizeof(uint32)),0,"H5Pget_ldims"); |