summaryrefslogtreecommitdiffstats
path: root/test/enum.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-08-25 21:08:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-08-25 21:08:49 (GMT)
commitddcae21908080ffbd40fcd5ce3244df5f391e02d (patch)
treeb4a6b336e60f8131c9eb4d03a0d534ece4744f25 /test/enum.c
parent02a65c468589eee54e3a4e6a851303792fe9a87d (diff)
downloadhdf5-ddcae21908080ffbd40fcd5ce3244df5f391e02d.zip
hdf5-ddcae21908080ffbd40fcd5ce3244df5f391e02d.tar.gz
hdf5-ddcae21908080ffbd40fcd5ce3244df5f391e02d.tar.bz2
[svn-r19298] Description:
Bring r19297 from trunk to 1.8 branch: Whack a few more memory errors exposed by valgrind. Make the debugging dump output a little bit prettier. Tested on: FreeBSD/32 6.3 (duty) w/debug (h5committested on trunk)
Diffstat (limited to 'test/enum.c')
-rw-r--r--test/enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/enum.c b/test/enum.c
index 4599a7c..c627af1 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -71,7 +71,7 @@ test_named(hid_t file)
if(H5Tclose(type) < 0) FAIL_STACK_ERROR
/* A smaller type */
- if((type = H5Tcreate(H5T_ENUM, 1)) < 0) FAIL_STACK_ERROR
+ if((type = H5Tcreate(H5T_ENUM, (size_t)1)) < 0) FAIL_STACK_ERROR
if(H5Tenum_insert(type, "RED", CPTR(val8, E1_RED )) < 0) FAIL_STACK_ERROR
if(H5Tenum_insert(type, "GREEN", CPTR(val8, E1_GREEN)) < 0) FAIL_STACK_ERROR
if(H5Tenum_insert(type, "BLUE", CPTR(val8, E1_BLUE )) < 0) FAIL_STACK_ERROR