summaryrefslogtreecommitdiffstats
path: root/src/H5Ofill.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-08-19 14:26:46 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-08-19 14:26:46 (GMT)
commit3ac10b282ba334ef2da907a8614b05c2b7ee03c8 (patch)
tree8c7f3eb54489482c4c173214368cf9f2b29054e7 /src/H5Ofill.c
parent3c596787759d86e8f672f51e8675e93dc3f6d6dc (diff)
downloadhdf5-3ac10b282ba334ef2da907a8614b05c2b7ee03c8.zip
hdf5-3ac10b282ba334ef2da907a8614b05c2b7ee03c8.tar.gz
hdf5-3ac10b282ba334ef2da907a8614b05c2b7ee03c8.tar.bz2
[svn-r9117] Purpose: Minor Bug Fix
Description: In H5O_fill_new_decode and H5O_fill_new_encode, UINT32DECODE and UINT32ENCODE were used to decode and encode message size, which is ssize_t. Solution: Change to INT32DECODE and INT32ENCODE. Platforms tested: fuss - very simple change. Misc. update:
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r--src/H5Ofill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index 843cde1..f79c2d1 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -148,7 +148,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)))
@@ -263,7 +263,7 @@ H5O_fill_new_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg)
/* Only write out the size and fill value if it is defined */
if(mesg->fill_defined) {
- UINT32ENCODE(p, mesg->size);
+ INT32ENCODE(p, mesg->size);
if(mesg->size>0)
if(mesg->buf) {
H5_CHECK_OVERFLOW(mesg->size,ssize_t,size_t);