diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-12-11 15:39:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-12-11 15:39:42 (GMT) |
commit | f53cd8e75da253a2fce6a0c837c8eba9071b799f (patch) | |
tree | a9eb1ca47308828fb8afd9d95d80c97d019f70ab /src | |
parent | fcd5fc141f0a6e88f683581be67b574759c24f43 (diff) | |
download | hdf5-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |