diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-09 04:14:29 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-09 04:14:29 (GMT) |
commit | 20720af231c875330a6074f65ee1c54e6a806fbb (patch) | |
tree | 64ae80f3ab6b76c09e2c309e76eb161cf133eed4 /hl/src/H5PT.c | |
parent | 25d1056dbff92a7662ee73c67596d24906530dbc (diff) | |
download | hdf5-20720af231c875330a6074f65ee1c54e6a806fbb.zip hdf5-20720af231c875330a6074f65ee1c54e6a806fbb.tar.gz hdf5-20720af231c875330a6074f65ee1c54e6a806fbb.tar.bz2 |
[svn-r12735] Description:
Clean up some compiler warnings and resolve some inconsistenceis between
hsize_t and size_t in the interface.
Tested on:
FreeBSD/32 4.11 (sleipnir) w/threadsafe
Linux/32 2.4 (heping) w/FORTRAN & C++
Linux/64 2.4 (mir) w/enable-1.6-compat
Diffstat (limited to 'hl/src/H5PT.c')
-rw-r--r-- | hl/src/H5PT.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c index ee03a1b..e6e106f 100644 --- a/hl/src/H5PT.c +++ b/hl/src/H5PT.c @@ -102,7 +102,7 @@ hid_t H5PTcreate_fl ( hid_t loc_id, goto out; if(compression >= 0 && compression <= 9) { - if( H5Pset_deflate(plist_id, compression) < 0) + if( H5Pset_deflate(plist_id, (unsigned)compression) < 0) goto out; } @@ -403,7 +403,7 @@ out: *------------------------------------------------------------------------- */ herr_t H5PTappend( hid_t table_id, - hsize_t nrecords, + size_t nrecords, const void * data ) { htbl_t * table; @@ -457,7 +457,7 @@ out: *------------------------------------------------------------------------- */ herr_t H5PTget_next( hid_t table_id, - hsize_t nrecords, + size_t nrecords, void * data) { htbl_t * table; @@ -503,7 +503,7 @@ out: */ herr_t H5PTread_packets( hid_t table_id, hsize_t start, - hsize_t nrecords, + size_t nrecords, void *data) { htbl_t * table; @@ -780,11 +780,12 @@ out: */ herr_t H5PTfree_vlen_readbuff( hid_t table_id, - hsize_t bufflen, + size_t _bufflen, void * buff ) { hid_t space_id = H5I_BADID; htbl_t * table; + hsize_t bufflen = _bufflen; herr_t ret_value; /* find the table struct from its ID */ |