diff options
author | Julian Eisel <julian@blender.org> | 2021-06-08 19:53:06 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-06-08 19:53:39 +0300 |
commit | c18ff180e39527d76cbcaab996bb8079ca4efced (patch) | |
tree | 686ff42b67d3a0380ba9f13e5a173e7f2c94ef17 /source/blender/blenlib/intern/math_base_inline.c | |
parent | 22ee056c3abb0b58ca482d57afa51ae61cbed575 (diff) |
Cleanup: Apply clang-format (`make format`)
Diffstat (limited to 'source/blender/blenlib/intern/math_base_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index d73afff64c8..c1db9ec1a69 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -807,9 +807,9 @@ MINLINE unsigned char unit_float_to_uchar_clamp(float val) MINLINE unsigned short unit_float_to_ushort_clamp(float val) { - return (unsigned short)((val >= 1.0f - 0.5f / 65535) ? 65535 : - (val <= 0.0f) ? 0 : - (val * 65535.0f + 0.5f)); + return (unsigned short)((val >= 1.0f - 0.5f / 65535) ? + 65535 : + (val <= 0.0f) ? 0 : (val * 65535.0f + 0.5f)); } #define unit_float_to_ushort_clamp(val) \ ((CHECK_TYPE_INLINE(val, float)), unit_float_to_ushort_clamp(val)) |