diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-09 03:40:32 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-09 03:40:32 (GMT) |
commit | 887aa3d05d0a64e1c8198138334c0fe761d0ab2f (patch) | |
tree | f76830792c4ebde1d4cf96810dfce70cc07808cb /src/H5I.c | |
parent | 78f0ecc3b98c77b4293c02e78d158a8385513d37 (diff) | |
download | hdf5-887aa3d05d0a64e1c8198138334c0fe761d0ab2f.zip hdf5-887aa3d05d0a64e1c8198138334c0fe761d0ab2f.tar.gz hdf5-887aa3d05d0a64e1c8198138334c0fe761d0ab2f.tar.bz2 |
Merge of --Wc++-compat changes from develop
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -152,13 +152,13 @@ H5I_term_package(void) H5I_type_t type; /* Type of ID */ /* How many types are still being used? */ - for(type = (H5I_type_t)0; type < H5I_next_type; H5_INC_ENUM(H5I_type_t, type)) + for(type = (H5I_type_t)0; type < H5I_next_type; type++) if((type_ptr = H5I_id_type_list_g[type]) && type_ptr->ids) n++; /* If no types are used then clean up */ if(0 == n) { - for(type = (H5I_type_t)0; type < H5I_next_type; H5_INC_ENUM(H5I_type_t,type)) { + for(type = (H5I_type_t)0; type < H5I_next_type; type++) { type_ptr = H5I_id_type_list_g[type]; if(type_ptr) { HDassert(NULL == type_ptr->ids); @@ -210,7 +210,7 @@ H5Iregister_type(size_t hash_size, unsigned reserved, H5I_free_t free_func) /* Increment the number of types*/ if(H5I_next_type < H5I_MAX_NUM_TYPES) { new_type = H5I_next_type; - H5_INC_ENUM(H5I_type_t, H5I_next_type); + H5I_next_type++; } /* end if */ else { hbool_t done; /* Indicate that search was successful */ |