diff options
author | Quincey Koziol <koziol@lbl.gov> | 2020-08-10 17:58:20 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2020-08-10 17:58:20 (GMT) |
commit | 79a2e34f88af7c7290401607f1dd1fed822dc414 (patch) | |
tree | 442bcb106378ce41f4ace3f0771c7bc6f8557022 /src/H5Odtype.c | |
parent | 5f6eec0b20ce325fbd4cbc7913cd972fbd070a22 (diff) | |
download | hdf5-79a2e34f88af7c7290401607f1dd1fed822dc414.zip hdf5-79a2e34f88af7c7290401607f1dd1fed822dc414.tar.gz hdf5-79a2e34f88af7c7290401607f1dd1fed822dc414.tar.bz2 |
Correct typos w/HGOTO_DONE & HGOTO_ERROR
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r-- | src/H5Odtype.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c index cbadfd0..3ad53a4 100644 --- a/src/H5Odtype.c +++ b/src/H5Odtype.c @@ -439,15 +439,15 @@ H5O__dtype_decode_helper(unsigned *ioflags/*in,out*/, const uint8_t **pp, H5T_t /* Set reference type */ dt->shared->u.atomic.u.r.rtype = (H5R_type_t)(flags & 0x0f); if(dt->shared->u.atomic.u.r.rtype <= H5R_BADTYPE - || dt->shared->u.atomic.u.r.rtype >= H5R_MAXTYPE) + || dt->shared->u.atomic.u.r.rtype >= H5R_MAXTYPE) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTDECODE, FAIL, "invalid reference type"); /* Set generic flag */ if(dt->shared->u.atomic.u.r.rtype == H5R_OBJECT2 - || dt->shared->u.atomic.u.r.rtype == H5R_DATASET_REGION2 - || dt->shared->u.atomic.u.r.rtype == H5R_ATTR) { - dt->shared->u.atomic.u.r.opaque = TRUE; - dt->shared->u.atomic.u.r.version = (unsigned)((flags >> 4) & 0x0f); + || dt->shared->u.atomic.u.r.rtype == H5R_DATASET_REGION2 + || dt->shared->u.atomic.u.r.rtype == H5R_ATTR) { + dt->shared->u.atomic.u.r.opaque = TRUE; + dt->shared->u.atomic.u.r.version = (unsigned)((flags >> 4) & 0x0f); if(dt->shared->u.atomic.u.r.version != H5R_ENCODE_VERSION) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTDECODE, FAIL, "reference version does not match"); } else |