summaryrefslogtreecommitdiffstats
path: root/test/tvlstr.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/tvlstr.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/tvlstr.c')
-rw-r--r--test/tvlstr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tvlstr.c b/test/tvlstr.c
index a227aa6..dc3ccd6 100644
--- a/test/tvlstr.c
+++ b/test/tvlstr.c
@@ -62,10 +62,10 @@ void *test_vlstr_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_vlstr_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 */
}
@@ -182,7 +182,7 @@ test_vlstrings_basic(void)
for(i=0; i<SPACE1_DIM1; i++) {
if(strlen(wdata[i])!=strlen(rdata[i])) {
num_errs++;
- printf("VL data length don't match!, strlen(wdata[%d])=%d, strlen(rdata[%d])=%d\n",(int)i,strlen(wdata[i]),(int)i,strlen(rdata[i]));
+ printf("VL data length don't match!, strlen(wdata[%d])=%d, strlen(rdata[%d])=%d\n",(int)i,(int)strlen(wdata[i]),(int)i,(int)strlen(rdata[i]));
continue;
} /* end if */
if( strcmp(wdata[i],rdata[i]) != 0 ) {