summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index fd7693a..2bce779 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -1363,6 +1363,12 @@ H5T_conv_struct_init (H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata, hid_t dxpl_id)
}
}
}
+ else {
+ /* Restore sorted conditions for the datatypes */
+ /* (Required for the src2dst array to be valid) */
+ H5T_sort_value(src, NULL);
+ H5T_sort_value(dst, NULL);
+ } /* end else */
/*
* (Re)build the cache of member conversion functions and pointers to