summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2015-11-05 23:58:05 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2016-11-29 23:42:31 (GMT)
commitabe66bd555c9c3729ad3b06a5e0d5c34aac7b994 (patch)
treee90dbc989c1b53eb86a7e8682ef0400d90589df5
parent217c8bcb16c6132c796fb6e99f61f80a4fbb9d78 (diff)
downloadhdf5-abe66bd555c9c3729ad3b06a5e0d5c34aac7b994.zip
hdf5-abe66bd555c9c3729ad3b06a5e0d5c34aac7b994.tar.gz
hdf5-abe66bd555c9c3729ad3b06a5e0d5c34aac7b994.tar.bz2
Force conversion when H5T_REFERENCE type is decoded
-rw-r--r--src/H5Odtype.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index e51d319..748ff70 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -439,7 +439,9 @@ H5O_dtype_decode_helper(H5F_t *f, unsigned *ioflags/*in,out*/, const uint8_t **p
dt->shared->u.atomic.u.r.rtype = (H5R_type_t)(flags & 0x0f);
/* Set extra information for object references, so the hobj_ref_t gets swizzled correctly */
- if(dt->shared->u.atomic.u.r.rtype == H5R_OBJECT) {
+ if(dt->shared->u.atomic.u.r.rtype == H5R_OBJECT
+ || dt->shared->u.atomic.u.r.rtype == H5R_REGION
+ || dt->shared->u.atomic.u.r.rtype == H5R_ATTR) {
/* Mark location this type as undefined for now. The caller function should
* decide the location. */
dt->shared->u.atomic.u.r.loc = H5T_LOC_BADLOC;