diff --git a/src/H5T.c b/src/H5T.c index f1b783f7673..3ab6145c3d5 100644 --- a/src/H5T.c +++ b/src/H5T.c @@ -2918,8 +2918,7 @@ H5Tset_size(hid_t type_id, size_t size) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "only strings may be variable length"); if (H5T_ENUM == dt->shared->type && dt->shared->u.enumer.nmembs > 0) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not allowed after members are defined"); - if (H5T_ARRAY == dt->shared->type || H5T_REFERENCE == dt->shared->type - || H5T_COMPLEX == dt->shared->type) + if (H5T_ARRAY == dt->shared->type || H5T_REFERENCE == dt->shared->type || H5T_COMPLEX == dt->shared->type) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for this datatype"); if (H5T_VLEN == dt->shared->type && H5T_VLEN_STRING != dt->shared->u.vlen.type) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for this datatype"); diff --git a/test/dtypes.c b/test/dtypes.c index b86c32c9117..5c9abe2ff03 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -8803,7 +8803,7 @@ test_array_cmpd_vl(void) static int test_set_size_invalid(void) { - hsize_t array_dims[] = { 10 }; + hsize_t array_dims[] = {10}; hid_t array_tid = H5I_INVALID_HID; hid_t vlen_tid = H5I_INVALID_HID; hid_t ref_tid = H5I_INVALID_HID;