diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2002-06-27 18:58:34 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2002-06-27 18:58:34 (GMT) |
commit | d059a941bc7014629a041dfe9afb5ac69928b163 (patch) | |
tree | 17288d92a46671e39d40a732b7883f07eb2d183d /src/H5HG.c | |
parent | 03ccb39fa9c857190f85b04174e01af4c3c1af32 (diff) | |
download | hdf5-d059a941bc7014629a041dfe9afb5ac69928b163.zip hdf5-d059a941bc7014629a041dfe9afb5ac69928b163.tar.gz hdf5-d059a941bc7014629a041dfe9afb5ac69928b163.tar.bz2 |
[svn-r5723]
Purpose:
Fix bug
Description:
In function H5HG_remove, heap object header wasn't included for size.
Solution:
Added heap object header in.
Platforms tested:
Linux 2.2(eirene).
Diffstat (limited to 'src/H5HG.c')
-rw-r--r-- | src/H5HG.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -858,9 +858,8 @@ H5HG_remove (H5F_t *f, H5HG_t *hobj) assert (hobj->idx>0 && hobj->idx<heap->nalloc); assert (heap->obj[hobj->idx].begin); obj_start = heap->obj[hobj->idx].begin; - need = H5HG_ALIGN(heap->obj[hobj->idx].size); /* should this include the - * object header size? -rpm - */ + /* Include object header size */ + need = H5HG_ALIGN(heap->obj[hobj->idx].size)+H5HG_SIZEOF_OBJHDR(f); /* Move the new free space to the end of the heap */ for (u=0; u<heap->nalloc; u++) { |