[Bf-blender-cvs] [c18ff180e39] master: Cleanup: Apply clang-format (`make format`)

Julian Eisel noreply at git.blender.org
Tue Jun 8 18:54:05 CEST 2021


Commit: c18ff180e39527d76cbcaab996bb8079ca4efced
Author: Julian Eisel
Date:   Tue Jun 8 18:53:06 2021 +0200
Branches: master
https://developer.blender.org/rBc18ff180e39527d76cbcaab996bb8079ca4efced

Cleanup: Apply clang-format (`make format`)

===================================================================

M	source/blender/blenlib/intern/math_base_inline.c

===================================================================

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))



More information about the Bf-blender-cvs mailing list