diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-08-19 14:29:54 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-08-19 14:29:54 (GMT) |
commit | 9a16096082bd12d52e41902ec9bbddc32755d74c (patch) | |
tree | e9eb1a1a2fb6856e02581024358381863641905b /src | |
parent | 19cb3b5ae784c804efbc9a730bebb710845e4602 (diff) | |
download | hdf5-9a16096082bd12d52e41902ec9bbddc32755d74c.zip hdf5-9a16096082bd12d52e41902ec9bbddc32755d74c.tar.gz hdf5-9a16096082bd12d52e41902ec9bbddc32755d74c.tar.bz2 |
[svn-r9118] Purpose: Minor Bug Fix
Description: In H5O_fill_new_decode and H5O_fill_new_encode, macros UINT32DECODE
and UINT32ENCODE were used to decode and encode message size, which is ssize_t.
Solution: Changed to INT32DECODE and INT32ENCODE.
Platforms tested: Tested v1.7 on fuss - very simple change.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Ofill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c index 152e144..4a4443d 100644 --- a/src/H5Ofill.c +++ b/src/H5Ofill.c @@ -152,7 +152,7 @@ H5O_fill_new_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p, /* Only decode fill value information if one is defined */ if(mesg->fill_defined) { - UINT32DECODE(p, mesg->size); + INT32DECODE(p, mesg->size); if (mesg->size>0) { H5_CHECK_OVERFLOW(mesg->size,ssize_t,size_t); if (NULL==(mesg->buf=H5MM_malloc((size_t)mesg->size))) @@ -267,7 +267,7 @@ H5O_fill_new_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg) *p++ = mesg->fill_defined; /* Does it handle undefined fill value? */ - UINT32ENCODE(p, mesg->size); + INT32ENCODE(p, mesg->size); if(mesg->size>0) if(mesg->buf) { H5_CHECK_OVERFLOW(mesg->size,ssize_t,size_t); |