summaryrefslogtreecommitdiffstats
path: root/test/tid.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-30 20:00:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-30 20:00:57 (GMT)
commit2e333eef246daaa4651fbf423517b6f3b86f85c0 (patch)
tree94a05bd2779ced757e7f623f762027633fa5ce71 /test/tid.c
parent25f3bf9011ad0876998a1db37f21eb7a214b93d4 (diff)
downloadhdf5-2e333eef246daaa4651fbf423517b6f3b86f85c0.zip
hdf5-2e333eef246daaa4651fbf423517b6f3b86f85c0.tar.gz
hdf5-2e333eef246daaa4651fbf423517b6f3b86f85c0.tar.bz2
[svn-r12829] Description:
Clean up more compiler warnings, esp. on Linux/64 platform. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'test/tid.c')
-rw-r--r--test/tid.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/tid.c b/test/tid.c
index b9ed9c3..52ec8fc 100644
--- a/test/tid.c
+++ b/test/tid.c
@@ -71,7 +71,7 @@ static int basic_id_test(void)
goto out;
/* Register a type */
- myType = H5Iregister_type(64, 0, (H5I_free_t) free );
+ myType = H5Iregister_type((size_t)64, 0, (H5I_free_t) free );
CHECK(myType, H5I_BADID, "H5Iregister_type");
if(myType == H5I_BADID)
@@ -107,7 +107,7 @@ static int basic_id_test(void)
goto out;
H5E_BEGIN_TRY
- testSize = H5Iget_name(arrayID, nameString, 9);
+ testSize = H5Iget_name(arrayID, nameString, (size_t)9);
H5E_END_TRY
VERIFY(testSize, -1, "H5Iget_name");
@@ -164,7 +164,7 @@ static int basic_id_test(void)
H5E_END_TRY
/* Register another type and another object in that type */
- myType = H5Iregister_type(64, 0, (H5I_free_t) free );
+ myType = H5Iregister_type((size_t)64, 0, (H5I_free_t) free );
CHECK(myType, H5I_BADID, "H5Iregister_type");
if(myType == H5I_BADID)
@@ -293,7 +293,7 @@ static int id_predefined_test(void )
goto out;
/* Create a datatype ID and try to perform illegal functions on it */
- typeID = H5Tcreate(H5T_OPAQUE, 42);
+ typeID = H5Tcreate(H5T_OPAQUE, (size_t)42);
CHECK(typeID, H5I_INVALID_HID, "H5Tcreate");
if(typeID == H5I_INVALID_HID)
goto out;
@@ -353,7 +353,7 @@ static int test_id_type_list(void)
H5I_type_t testType;
int i; /* Just a counter variable */
- startType = H5Iregister_type(8, 0, (H5I_free_t) free );
+ startType = H5Iregister_type((size_t)8, 0, (H5I_free_t) free );
CHECK(startType, H5I_BADID, "H5Iregister_type");
if(startType == H5I_BADID)
goto out;
@@ -368,7 +368,7 @@ static int test_id_type_list(void)
/* Create types up to MAX_NUM_TYPES */
for(i = startType + 1; i < MAX_NUM_TYPES; i++)
{
- currentType = H5Iregister_type(8, 0, (H5I_free_t) free );
+ currentType = H5Iregister_type((size_t)8, 0, (H5I_free_t) free );
CHECK(currentType, H5I_BADID, "H5Iregister_type");
if(currentType == H5I_BADID)
goto out;
@@ -377,7 +377,7 @@ static int test_id_type_list(void)
/* Wrap around to low type ID numbers */
for(i = H5I_NTYPES; i < startType; i++)
{
- currentType = H5Iregister_type(8, 0, (H5I_free_t) free );
+ currentType = H5Iregister_type((size_t)8, 0, (H5I_free_t) free );
CHECK(currentType, H5I_BADID, "H5Iregister_type");
if(currentType == H5I_BADID)
goto out;
@@ -385,7 +385,7 @@ static int test_id_type_list(void)
/* There should be no room at the inn for a new ID type*/
H5E_BEGIN_TRY
- testType = H5Iregister_type(8, 0, (H5I_free_t) free );
+ testType = H5Iregister_type((size_t)8, 0, (H5I_free_t) free );
H5E_END_TRY
VERIFY(testType, H5I_BADID, "H5Iregister_type");
@@ -394,7 +394,7 @@ static int test_id_type_list(void)
/* Now delete a type and try to insert again */
H5Idestroy_type(H5I_NTYPES);
- testType = H5Iregister_type(8, 0, (H5I_free_t) free );
+ testType = H5Iregister_type((size_t)8, 0, (H5I_free_t) free );
VERIFY(testType, H5I_NTYPES, "H5Iregister_type");
if(testType != H5I_NTYPES)