diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-09-30 02:21:53 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-09-30 02:21:53 (GMT) |
commit | 383300afc95489a2b991e6640da750ace0e0758b (patch) | |
tree | f2b18b734bde07cfd3e4ddf605801341174427a1 | |
parent | a5e00d17bd196c63c21caf6af9832d4d8f77728f (diff) | |
download | hdf5-383300afc95489a2b991e6640da750ace0e0758b.zip hdf5-383300afc95489a2b991e6640da750ace0e0758b.tar.gz hdf5-383300afc95489a2b991e6640da750ace0e0758b.tar.bz2 |
[svn-r9341] Purpose:
Bug fix
Description:
Correct a couple of typos in the recent object resurrection code.
Platforms tested:
FreeBSD 4.10 (sleipnir) w/parallel
Too minor to require h5committest
-rw-r--r-- | src/H5Dmpio.c | 6 | ||||
-rw-r--r-- | src/H5FO.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c index e8da931..cbad339 100644 --- a/src/H5Dmpio.c +++ b/src/H5Dmpio.c @@ -143,13 +143,13 @@ H5D_mpio_spaces_xfer(H5F_t *f, const H5D_t *dset, size_t elmt_size, HGOTO_ERROR(H5E_DATASPACE, H5E_BADTYPE, FAIL,"couldn't create MPI file type"); /* Get the base address of the contiguous dataset or the chunk */ - if(dset->layout.type == H5D_CONTIGUOUS) + if(dset->shared->layout.type == H5D_CONTIGUOUS) addr = H5D_contig_get_addr(dset) + mpi_file_offset; else { haddr_t chunk_addr; /* for collective chunk IO */ - assert(dset->layout.type == H5D_CHUNKED); - chunk_addr=H5D_istore_get_addr(f,dxpl_id,&(dset->layout),store->chunk.offset,NULL); + assert(dset->shared->layout.type == H5D_CHUNKED); + chunk_addr=H5D_istore_get_addr(f,dxpl_id,&(dset->shared->layout),store->chunk.offset,NULL); addr = H5F_BASE_ADDR(f) + chunk_addr + mpi_file_offset; } @@ -128,7 +128,7 @@ H5FO_opened(const H5F_t *f, haddr_t addr) open_obj=H5TB_NODE_DATA(obj_node); assert(open_obj); ret_value=open_obj->obj; - assert(ret_value>0); + assert(ret_value!=NULL); } /* end if */ else ret_value=NULL; |