diff options
author | Sean McBride <sean@rogue-research.com> | 2021-03-05 14:50:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:50:42 (GMT) |
commit | f4e87791e1543d672dba07f7211cc01509b940b6 (patch) | |
tree | 73994524e8e671251b3f3137c274b7f72be27329 /src/H5Oalloc.c | |
parent | e84e5ee4672e22753a4d3d600dca2d5291953d78 (diff) | |
download | hdf5-f4e87791e1543d672dba07f7211cc01509b940b6.zip hdf5-f4e87791e1543d672dba07f7211cc01509b940b6.tar.gz hdf5-f4e87791e1543d672dba07f7211cc01509b940b6.tar.bz2 |
Fixed clang-tidy readability-misleading-indentation warnings (#427)
* Fixed clang-tidy readability-misleading-indentation warnings
* Reformatted src/H5Zscaleoffset.c with clang v10.0.1.
Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
Diffstat (limited to 'src/H5Oalloc.c')
-rw-r--r-- | src/H5Oalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Oalloc.c b/src/H5Oalloc.c index 98bbf0b..bad89ae 100644 --- a/src/H5Oalloc.c +++ b/src/H5Oalloc.c @@ -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) { |