diff options
author | Robb Matzke <matzke@llnl.gov> | 1997-08-11 22:49:59 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1997-08-11 22:49:59 (GMT) |
commit | 326981f421b993815657daecc8b37bd732513d82 (patch) | |
tree | b7a47af6b8d952ea212ee698b2aa3f7f2db3eb82 /src/H5H.c | |
parent | eec23941abb546ba9d4c03e3cacd4ff70f116b7a (diff) | |
download | hdf5-326981f421b993815657daecc8b37bd732513d82.zip hdf5-326981f421b993815657daecc8b37bd732513d82.tar.gz hdf5-326981f421b993815657daecc8b37bd732513d82.tar.bz2 |
[svn-r24] ./src/H5B.c
./src/H5Bprivate.h
./src/H5G.c
H5B_new() only takes two arguments.
./src/H5C.c
Fixed initializer for default_file_create to be the same order
as it's definition.
./src/H5D.c
Changed commented-out code to #if 0/#endif. #if'd out a
variable that was unused because of #if'd out code.
./src/H5Dproto.c
Added a prototype for H5Dwrite().
./src/H5F.c
Changed parentheses to fix precedence problems from:
flags & (~H5AC_OVERWRITE) != 0
to
(flags & ~H5AC_OVERWRITE) != 0
./src/H5H.c
Heap reallocation doubles the heap size instead of tripling it.
./src/H5O.c
Got rid of a statement with no effect.
./src/hdf5port.h
Indented a few #defines. Added a defn for MAX3().
Diffstat (limited to 'src/H5H.c')
-rw-r--r-- | src/H5H.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -573,8 +573,7 @@ H5H_insert (hdf5_file_t *f, haddr_t addr, size_t buf_size, const void *buf) */ if (offset<0) { - need_more = MAX (2*heap->mem_alloc, H5H_SIZEOF_FREE(f)); - need_more = MAX (need_more, need); + need_more = MAX3 (need, heap->mem_alloc, H5H_SIZEOF_FREE(f)); if (max_fl && max_fl->offset+max_fl->size==heap->mem_alloc) { /* |