From 3ac10b282ba334ef2da907a8614b05c2b7ee03c8 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 19 Aug 2004 09:26:46 -0500 Subject: [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: --- src/H5Ofill.c | 4 ++-- 1 file 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); -- cgit v0.12