diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2017-04-06 17:15:57 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2017-04-06 17:15:57 (GMT) |
commit | 675ab731ae251c4e553a869d8069cbce64f35ce5 (patch) | |
tree | 227be64df86e14868aceaae368731a1aca0e01ba /src | |
parent | 1bb278787bafe647ed1711efcaeed09688f5fc80 (diff) | |
download | hdf5-675ab731ae251c4e553a869d8069cbce64f35ce5.zip hdf5-675ab731ae251c4e553a869d8069cbce64f35ce5.tar.gz hdf5-675ab731ae251c4e553a869d8069cbce64f35ce5.tar.bz2 |
Fix illegal references for sanity checks.
Correct illegal references for HDassert() checks when in debug mode.
Tested on emu, osx1010test, mayll, kituo, ostrich.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Dchunk.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index a55a156..ab2cb8f 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -462,8 +462,8 @@ H5D__chunk_direct_read(const H5D_t *dset, hid_t dxpl_id, hsize_t *offset, H5D_rdcc_ent_t *ent = rdcc->slot[udata.idx_hint]; /* Sanity checks */ - HDassert(udata->idx_hint < rdcc->nslots); - HDassert(rdcc->slot[udata->idx_hint]); + HDassert(udata.idx_hint < rdcc->nslots); + HDassert(rdcc->slot[udata.idx_hint]); /* If the cached chunk is dirty, it must be flushed to get accurate size */ if( ent->dirty == TRUE ) { @@ -533,8 +533,7 @@ H5D__get_chunk_storage_size(H5D_t *dset, hid_t dxpl_id, const hsize_t *offset, h /* Check args */ HDassert(dset && H5D_CHUNKED == layout->type); HDassert(offset); - HDassert(filters); - HDassert(buf); + HDassert(storage_size); /* Retrieve the dataset dimensions */ space_ndims = dset->shared->layout.u.chunk.ndims - 1; @@ -571,8 +570,8 @@ H5D__get_chunk_storage_size(H5D_t *dset, hid_t dxpl_id, const hsize_t *offset, h /* Check if the requested chunk exists in the chunk cache */ if(UINT_MAX != udata.idx_hint) { /* Sanity checks */ - HDassert(udata->idx_hint < rdcc->nslots); - HDassert(rdcc->slot[udata->idx_hint]); + HDassert(udata.idx_hint < rdcc->nslots); + HDassert(rdcc->slot[udata.idx_hint]); H5D_rdcc_ent_t *ent = rdcc->slot[udata.idx_hint]; /* If the cached chunk is dirty, it must be flushed to get accurate size */ |