diff options
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index 1ac6dbc..2dd1f67 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -233,12 +233,13 @@ int do_copy_objects(hid_t fidin, /*------------------------------------------------------------------------- - * object references are a special case + * references are a special case * we cannot just copy the buffers, but instead we recreate the reference * in a second traversal of the output file *------------------------------------------------------------------------- */ - if ( ! H5Tequal(mtype_id, H5T_STD_REF_OBJ) ) + + if ( H5Tget_class(mtype_id) != H5T_REFERENCE ) { /* the information about the object to be filtered/"layouted" */ |