diff options
author | James Laird <jlaird@hdfgroup.org> | 2004-09-29 15:28:25 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2004-09-29 15:28:25 (GMT) |
commit | dff1653a4f36ded37ed426277068d3db53aa4be2 (patch) | |
tree | 23b43104b9037a6a6e1ec9bd76f71ad2e95872a3 /src/H5R.c | |
parent | 093c14b8db58051b116b4f39dc65247a0c637ad8 (diff) | |
download | hdf5-dff1653a4f36ded37ed426277068d3db53aa4be2.zip hdf5-dff1653a4f36ded37ed426277068d3db53aa4be2.tar.gz hdf5-dff1653a4f36ded37ed426277068d3db53aa4be2.tar.bz2 |
[svn-r9335]
Purpose:
Bug fix
Description:
Fix bugs found by daily tests.
Platforms tested:
copper
Diffstat (limited to 'src/H5R.c')
-rw-r--r-- | src/H5R.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -416,7 +416,7 @@ H5R_dereference(H5F_t *file, hid_t dxpl_id, H5R_type_t ref_type, void *_ref) break; case H5G_TYPE: - if ((type=H5T_open(&ent, dxpl_id))<0) + if ((type=H5T_open(&ent, dxpl_id)) ==NULL) HGOTO_ERROR(H5E_DATATYPE, H5E_NOTFOUND, FAIL, "not found"); /* Create an atom for the datatype */ @@ -428,7 +428,7 @@ H5R_dereference(H5F_t *file, hid_t dxpl_id, H5R_type_t ref_type, void *_ref) case H5G_DATASET: /* Open the dataset */ - if ((dset=H5D_open(&ent,dxpl_id)) <0) + if ((dset=H5D_open(&ent,dxpl_id)) ==NULL) HGOTO_ERROR(H5E_DATASET, H5E_NOTFOUND, FAIL, "not found"); /* Create an atom for the dataset */ |