summaryrefslogtreecommitdiffstats
path: root/test/tvltypes.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-11-17 22:00:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-11-17 22:00:15 (GMT)
commit9648d22f5f387640de8140acd7d2193bcd6770ad (patch)
tree20905fda3ba2ecf9259c0cc9c4ef0658a79ad903 /test/tvltypes.c
parent9e014467b62df66322de63e21be565ed59a079b3 (diff)
downloadhdf5-9648d22f5f387640de8140acd7d2193bcd6770ad.zip
hdf5-9648d22f5f387640de8140acd7d2193bcd6770ad.tar.gz
hdf5-9648d22f5f387640de8140acd7d2193bcd6770ad.tar.bz2
[svn-r1837] Cleaned up a few warnings from the SGI compiler.
Diffstat (limited to 'test/tvltypes.c')
-rw-r--r--test/tvltypes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tvltypes.c b/test/tvltypes.c
index e20aefc..dbedf2f 100644
--- a/test/tvltypes.c
+++ b/test/tvltypes.c
@@ -62,10 +62,10 @@ void *test_vltypes_alloc_custom(size_t size, void *info)
* This weird contortion is required on the DEC Alpha to keep the
* alignment correct - QAK
*/
- extra=MAX(sizeof(void *),sizeof(int));
+ extra=MAX(sizeof(void *),sizeof(size_t));
if((ret_value=HDmalloc(extra+size))!=NULL) {
- *(int *)ret_value=size;
+ *(size_t *)ret_value=size;
*mem_used+=size;
} /* end if */
ret_value=((unsigned char *)ret_value)+extra;
@@ -90,11 +90,11 @@ void test_vltypes_free_custom(void *_mem, void *info)
* This weird contortion is required on the DEC Alpha to keep the
* alignment correct - QAK
*/
- extra=MAX(sizeof(void *),sizeof(int));
+ extra=MAX(sizeof(void *),sizeof(size_t));
if(_mem!=NULL) {
mem=((unsigned char *)_mem)-extra;
- *mem_used-=*(int *)mem;
+ *mem_used-=*(size_t *)mem;
HDfree(mem);
} /* end if */
}