From d0abb4a760c9a63b2a03747246bf8c3ffa75cde9 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 28 Sep 2004 14:54:12 -0500 Subject: [svn-r9333] Purpose: Bug fix Description: Fix another couple of int <-> pointer checks. Platforms tested: AIX 5.1 (copper) Too minor to require h5committest --- src/H5G.c | 2 +- src/H5R.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5G.c b/src/H5G.c index 38fcf43..d30f6f0 100644 --- a/src/H5G.c +++ b/src/H5G.c @@ -301,7 +301,7 @@ H5Gopen(hid_t loc_id, const char *name) HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "group not found"); /* Open the group */ - if ((grp = H5G_open(&ent, H5AC_dxpl_id)) <0) + if ((grp = H5G_open(&ent, H5AC_dxpl_id))==NULL) HGOTO_ERROR(H5E_SYM, H5E_CANTOPENOBJ, FAIL, "unable to open group"); /* Register an atom for the group */ if ((ret_value = H5I_register(H5I_GROUP, grp)) < 0) diff --git a/src/H5R.c b/src/H5R.c index ba699e8..a34afa7 100644 --- a/src/H5R.c +++ b/src/H5R.c @@ -417,7 +417,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 */ -- cgit v0.12