summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-12-11 15:39:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-12-11 15:39:42 (GMT)
commitf53cd8e75da253a2fce6a0c837c8eba9071b799f (patch)
treea9eb1ca47308828fb8afd9d95d80c97d019f70ab /src
parentfcd5fc141f0a6e88f683581be67b574759c24f43 (diff)
downloadhdf5-f53cd8e75da253a2fce6a0c837c8eba9071b799f.zip
hdf5-f53cd8e75da253a2fce6a0c837c8eba9071b799f.tar.gz
hdf5-f53cd8e75da253a2fce6a0c837c8eba9071b799f.tar.bz2
[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)
Diffstat (limited to 'src')
-rw-r--r--src/H5B.c4
1 files 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 */