diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-09 21:22:30 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-09 21:22:30 (GMT) |
commit | 35bc545296209684a5c46db0cde11beb9403a4dc (patch) | |
tree | 98b5a037ed928085b98abc1fee71fc62f81073c1 /test/tselect.c | |
parent | 1290c4808d3e9890c765b1445f66b823c9026734 (diff) | |
download | hdf5-35bc545296209684a5c46db0cde11beb9403a4dc.zip hdf5-35bc545296209684a5c46db0cde11beb9403a4dc.tar.gz hdf5-35bc545296209684a5c46db0cde11beb9403a4dc.tar.bz2 |
[svn-r3252] Purpose:
Code cleanup.
Description:
Fixed _lots_ (I mean _tons_) of warnings spit out by the gcc with the
extra warnings. Including a few show-stoppers for compression on IRIX
machines.
Solution:
Changed lots of variables' types to more sensible and consistent types,
more range-checking, more variable typecasts, etc.
Platforms tested:
FreeBSD 4.2 (hawkwind), IRIX64-64 (modi4)
Diffstat (limited to 'test/tselect.c')
-rw-r--r-- | test/tselect.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tselect.c b/test/tselect.c index 33e3988..3625e24 100644 --- a/test/tselect.c +++ b/test/tselect.c @@ -326,7 +326,7 @@ test_select_point(void) CHECK(ret, FAIL, "H5Sselect_elements"); /* Verify correct elements selected */ - H5Sget_select_elem_pointlist(sid1,0,POINT1_NPOINTS,(hsize_t *)temp_coord1); + H5Sget_select_elem_pointlist(sid1,(hsize_t)0,(hsize_t)POINT1_NPOINTS,(hsize_t *)temp_coord1); for(i=0; i<POINT1_NPOINTS; i++) { VERIFY(temp_coord1[i][0],coord1[i][0],"H5Sget_select_elem_pointlist"); VERIFY(temp_coord1[i][1],coord1[i][1],"H5Sget_select_elem_pointlist"); @@ -351,7 +351,7 @@ test_select_point(void) CHECK(ret, FAIL, "H5Sselect_elements"); /* Verify correct elements selected */ - H5Sget_select_elem_pointlist(sid1,POINT1_NPOINTS,POINT1_NPOINTS,(hsize_t *)temp_coord1); + H5Sget_select_elem_pointlist(sid1,(hsize_t)POINT1_NPOINTS,(hsize_t)POINT1_NPOINTS,(hsize_t *)temp_coord1); for(i=0; i<POINT1_NPOINTS; i++) { VERIFY(temp_coord1[i][0],coord1[i][0],"H5Sget_select_elem_pointlist"); VERIFY(temp_coord1[i][1],coord1[i][1],"H5Sget_select_elem_pointlist"); @@ -376,7 +376,7 @@ test_select_point(void) CHECK(ret, FAIL, "H5Sselect_elements"); /* Verify correct elements selected */ - H5Sget_select_elem_pointlist(sid2,0,POINT1_NPOINTS,(hsize_t *)temp_coord2); + H5Sget_select_elem_pointlist(sid2,(hsize_t)0,(hsize_t)POINT1_NPOINTS,(hsize_t *)temp_coord2); for(i=0; i<POINT1_NPOINTS; i++) { VERIFY(temp_coord2[i][0],coord2[i][0],"H5Sget_select_elem_pointlist"); VERIFY(temp_coord2[i][1],coord2[i][1],"H5Sget_select_elem_pointlist"); @@ -405,7 +405,7 @@ test_select_point(void) CHECK(ret, FAIL, "H5Sselect_elements"); /* Verify correct elements selected */ - H5Sget_select_elem_pointlist(sid2,0,POINT1_NPOINTS,(hsize_t *)temp_coord2); + H5Sget_select_elem_pointlist(sid2,(hsize_t)0,(hsize_t)POINT1_NPOINTS,(hsize_t *)temp_coord2); for(i=0; i<POINT1_NPOINTS; i++) { VERIFY(temp_coord2[i][0],coord2[i][0],"H5Sget_select_elem_pointlist"); VERIFY(temp_coord2[i][1],coord2[i][1],"H5Sget_select_elem_pointlist"); @@ -447,7 +447,7 @@ test_select_point(void) CHECK(ret, FAIL, "H5Sselect_elements"); /* Verify correct elements selected */ - H5Sget_select_elem_pointlist(sid2,0,POINT1_NPOINTS,(hsize_t *)temp_coord3); + H5Sget_select_elem_pointlist(sid2,(hsize_t)0,(hsize_t)POINT1_NPOINTS,(hsize_t *)temp_coord3); for(i=0; i<POINT1_NPOINTS; i++) { VERIFY(temp_coord3[i][0],coord3[i][0],"H5Sget_select_elem_pointlist"); VERIFY(temp_coord3[i][1],coord3[i][1],"H5Sget_select_elem_pointlist"); @@ -471,7 +471,7 @@ test_select_point(void) CHECK(ret, FAIL, "H5Sselect_elements"); /* Verify correct elements selected */ - H5Sget_select_elem_pointlist(sid2,POINT1_NPOINTS,POINT1_NPOINTS,(hsize_t *)temp_coord3); + H5Sget_select_elem_pointlist(sid2,(hsize_t)POINT1_NPOINTS,(hsize_t)POINT1_NPOINTS,(hsize_t *)temp_coord3); for(i=0; i<POINT1_NPOINTS; i++) { VERIFY(temp_coord3[i][0],coord3[i][0],"H5Sget_select_elem_pointlist"); VERIFY(temp_coord3[i][1],coord3[i][1],"H5Sget_select_elem_pointlist"); |