Skip to content

Commit

Permalink
Fixed clang-tidy readability-misleading-indentation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
seanm committed Mar 4, 2021
1 parent fb210fc commit d66944a
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 160 deletions.
6 changes: 3 additions & 3 deletions src/H5Oalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,10 @@ H5O__alloc_find_best_null(const H5O_t *oh, size_t size, size_t *mesg_idx)
/* Keep first one found */
if (found_null < 0)
found_null = (ssize_t)idx;
else
/* Check for better fit */
if (oh->mesg[idx].raw_size < oh->mesg[found_null].raw_size)
/* Check for better fit */
else if (oh->mesg[idx].raw_size < oh->mesg[found_null].raw_size) {
found_null = (ssize_t)idx;
}
else {
/* If they are the same size, choose the one in the earliest chunk */
if (oh->mesg[idx].raw_size == oh->mesg[found_null].raw_size) {
Expand Down
10 changes: 7 additions & 3 deletions src/H5Oint.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,16 @@ H5O_apply_ohdr(H5F_t *f, H5O_t *oh, hid_t ocpl_id, size_t size_hint, size_t init
#if H5_SIZEOF_SIZE_T > H5_SIZEOF_INT32_T
if (size_hint > 4294967295UL)
oh->flags |= H5O_HDR_CHUNK0_8;
else
#endif /* H5_SIZEOF_SIZE_T > H5_SIZEOF_INT32_T */
if (size_hint > 65535)
else if (size_hint > 65535)
oh->flags |= H5O_HDR_CHUNK0_4;
else if (size_hint > 255)
oh->flags |= H5O_HDR_CHUNK0_2;
#else
if (size_hint > 65535)
oh->flags |= H5O_HDR_CHUNK0_4;
else if (size_hint > 255)
oh->flags |= H5O_HDR_CHUNK0_2;
#endif
}
else {
/* Reset unused time fields */
Expand Down
Loading

0 comments on commit d66944a

Please sign in to comment.