summaryrefslogtreecommitdiffstats
path: root/src/H5Znbit.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-17 16:46:52 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-25 19:59:52 (GMT)
commita3462bf164ef3b00e863de64a2a547c76f7adcd4 (patch)
treec546f5f4ebddea0abc73b9623cab9a9471181a7d /src/H5Znbit.c
parent855dcfb5644f56106e87100a2f3af99bd8f11199 (diff)
downloadhdf5-a3462bf164ef3b00e863de64a2a547c76f7adcd4.zip
hdf5-a3462bf164ef3b00e863de64a2a547c76f7adcd4.tar.gz
hdf5-a3462bf164ef3b00e863de64a2a547c76f7adcd4.tar.bz2
Merge pull request #2325 in HDFFV/hdf5 from ~DYOUNG/werror:h5t_copy to develop
Merged per discussion with Elena. * commit '3f903a441ad84001ea66589728bd8b036b6fdfca': Take out the temporary performance tests. Make calls through a function pointer. Use the same number of arguments, always. Increase iterations, provide a baseline for no-op, simplify the overhead case a bit. Temporarily add some code that measures the time to run the simplest possible H5T__copy_all()-like routine 10 million times and then measures the version with FUNC_ENTER_STATIC/_LEAVE_NOAPI and a HGOTO_ERROR() statement. H5T_copy() constification plus Quincey's contributions.
Diffstat (limited to 'src/H5Znbit.c')
-rw-r--r--src/H5Znbit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Znbit.c b/src/H5Znbit.c
index fe0041c..2f79725 100644
--- a/src/H5Znbit.c
+++ b/src/H5Znbit.c
@@ -338,7 +338,7 @@ H5Z_calc_parms_compound(const H5T_t *type, size_t *cd_values_actual_nparms)
H5T_class_t dtype_member_class; /* Compound datatype's member datatype's class */
/* Get member datatype */
- if(NULL == (dtype_member = H5T_get_member_type(type, u, H5T_COPY_TRANSIENT)))
+ if(NULL == (dtype_member = H5T_get_member_type(type, u)))
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "bad member datatype")
/* Get member datatype's class */
@@ -695,7 +695,7 @@ H5Z_set_parms_compound(const H5T_t *type, unsigned *cd_values_index,
/* For each member, set parameters */
for(u = 0; u < nmembers; u++) {
/* Get member datatype */
- if(NULL == (dtype_member = H5T_get_member_type(type, u, H5T_COPY_TRANSIENT)))
+ if(NULL == (dtype_member = H5T_get_member_type(type, u)))
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "bad member datatype")
/* Get member datatype's class */