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/H5Oint.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/H5Oint.c')
-rw-r--r-- | src/H5Oint.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/H5Oint.c b/src/H5Oint.c index 5fa9c6a..f24d0bb 100644 --- a/src/H5Oint.c +++ b/src/H5Oint.c @@ -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 */ |