diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2012-10-12 03:23:08 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2012-10-12 03:23:08 (GMT) |
commit | 75cdc2dedf20a0fefb44e69e9744e7a1fc778d0d (patch) | |
tree | 231f8995f999d21e2ee96d6be012b1f2805d4134 /src/H5B2hdr.c | |
parent | d2f3c1b991b1990fe70afa64b3ca1941165a94c4 (diff) | |
download | hdf5-75cdc2dedf20a0fefb44e69e9744e7a1fc778d0d.zip hdf5-75cdc2dedf20a0fefb44e69e9744e7a1fc778d0d.tar.gz hdf5-75cdc2dedf20a0fefb44e69e9744e7a1fc778d0d.tar.bz2 |
[svn-r22887] Purpose:
Fixes a variety of compile warnings and issues in the B-tree
and heap code.
Tested on:
jam
Diffstat (limited to 'src/H5B2hdr.c')
-rw-r--r-- | src/H5B2hdr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5B2hdr.c b/src/H5B2hdr.c index 589325c..9f6be80 100644 --- a/src/H5B2hdr.c +++ b/src/H5B2hdr.c @@ -108,7 +108,7 @@ H5FL_SEQ_DEFINE(H5B2_node_info_t); */ herr_t H5B2_hdr_init(H5B2_hdr_t *hdr, const H5B2_create_t *cparam, void *ctx_udata, - void *parent, uint16_t depth) + void *parent, unsigned depth) { size_t sz_max_nrec; /* Temporary variable for range checking */ unsigned u_max_nrec_size; /* Temporary variable for range checking */ @@ -137,7 +137,7 @@ H5B2_hdr_init(H5B2_hdr_t *hdr, const H5B2_create_t *cparam, void *ctx_udata, hdr->pending_delete = FALSE; /* Assign dynamic information */ - hdr->depth = depth; + hdr->depth = (uint16_t)depth; /* Assign user's information */ hdr->split_percent = cparam->split_percent; @@ -312,7 +312,7 @@ H5B2_hdr_create(H5F_t *f, hid_t dxpl_id, const H5B2_create_t *cparam, HGOTO_ERROR(H5E_BTREE, H5E_CANTALLOC, HADDR_UNDEF, "allocation failed for B-tree header") /* Initialize shared B-tree info */ - if(H5B2_hdr_init(hdr, cparam, ctx_udata, parent, (uint16_t)0) < 0) + if(H5B2_hdr_init(hdr, cparam, ctx_udata, parent, (unsigned)0) < 0) HGOTO_ERROR(H5E_BTREE, H5E_CANTINIT, HADDR_UNDEF, "can't create shared B-tree info") /* Allocate space for the header on disk */ |