From f53cd8e75da253a2fce6a0c837c8eba9071b799f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 11 Dec 2008 10:39:42 -0500 Subject: [svn-r16179] Description: Use the H5F_KVALUE macro in a couple more places, to make the code easier to read. Tested on: Mac OS X only (very minor) --- src/H5B.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5B.c b/src/H5B.c index d049ee7..a32e830 100644 --- a/src/H5B.c +++ b/src/H5B.c @@ -1796,11 +1796,11 @@ H5B_shared_new(const H5F_t *f, const H5B_class_t *type, size_t sizeof_rkey) #ifdef H5_CLEAR_MEMORY HDmemset(shared->page, 0, shared->sizeof_rnode); #endif /* H5_CLEAR_MEMORY */ - if(NULL == (shared->nkey = H5FL_SEQ_MALLOC(size_t, (size_t)(2 * H5F_KVALUE(f, type) + 1)))) + if(NULL == (shared->nkey = H5FL_SEQ_MALLOC(size_t, (size_t)(shared->two_k + 1)))) HGOTO_ERROR(H5E_BTREE, H5E_NOSPACE, NULL, "memory allocation failed for B-tree page") /* Initialize the offsets into the native key buffer */ - for(u = 0; u < (2 * H5F_KVALUE(f, type) + 1); u++) + for(u = 0; u < (shared->two_k + 1); u++) shared->nkey[u] = u * type->sizeof_nkey; /* Set return value */ -- cgit v0.12