summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:52:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:52:49 (GMT)
commitdd5cc739c1b41418c4ce114522ab7304a5c345bd (patch)
tree66f17c9ed376293ae62c154719a84187288bf404 /test/tattr.c
parentef92748be63cd0942846b5201fe72e7eb12e7d20 (diff)
downloadhdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.zip
hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.tar.gz
hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.tar.bz2
[svn-r6109] *** empty log message ***
Diffstat (limited to 'test/tattr.c')
-rw-r--r--test/tattr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tattr.c b/test/tattr.c
index f211c5e..f80d478 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -186,9 +186,9 @@ test_attr_basic_write(void)
CHECK(attr_name_size, FAIL, "H5Aget_name");
if(attr_name_size>0)
- attr_name = (char*)HDcalloc(attr_name_size+1, sizeof(char));
+ attr_name = (char*)HDcalloc((size_t)(attr_name_size+1), sizeof(char));
- ret=H5Aget_name(attr, attr_name_size+1, attr_name);
+ ret=H5Aget_name(attr, (size_t)(attr_name_size+1), attr_name);
CHECK(ret, FAIL, "H5Aget_name");
ret=HDstrcmp(attr_name, ATTR_TMP_NAME);
VERIFY(ret, 0, "HDstrcmp");
@@ -221,9 +221,9 @@ test_attr_basic_write(void)
CHECK(attr_name_size, FAIL, "H5Aget_name");
if(attr_name_size>0)
- attr_name = (char*)HDcalloc(attr_name_size+1, sizeof(char));
+ attr_name = (char*)HDcalloc((size_t)(attr_name_size+1), sizeof(char));
- ret=H5Aget_name(attr2, attr_name_size+1, attr_name);
+ ret=H5Aget_name(attr2, (size_t)(attr_name_size+1), attr_name);
CHECK(ret, FAIL, "H5Aget_name");
ret=HDstrcmp(attr_name, ATTR1A_NAME);
VERIFY(ret, 0, "HDstrcmp");