Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 2, 2024
1 parent 084866b commit c843ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/H5T.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion test/dtypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c843ca9

Please sign in to comment.