diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-15 03:13:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-15 03:13:54 +0300 |
commit | 70f1b8cc4061fac81413c723b973386050e2561e (patch) | |
tree | 10b550d1b35fda46e8653bc9b584e76f062d2957 /source/blender/blenlib | |
parent | 56fa48969e13bf54fc7f64e03cccf6ac82624b15 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_hash.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_hash.h b/source/blender/blenlib/BLI_hash.h index 8b797820722..fa79481e25c 100644 --- a/source/blender/blenlib/BLI_hash.h +++ b/source/blender/blenlib/BLI_hash.h @@ -65,7 +65,7 @@ BLI_INLINE unsigned int BLI_hash_int(unsigned int k) BLI_INLINE float BLI_hash_int_01(unsigned int k) { - return (float)BLI_hash_int(k) * (1.0f/(float)0xFFFFFFFF); + return (float)BLI_hash_int(k) * (1.0f / (float)0xFFFFFFFF); } #endif // __BLI_HASH_H__ diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index 144198f2c06..1f517471407 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -333,7 +333,8 @@ MINLINE float clamp_f(float value, float min, float max) { if (value > max) { return max; - } else if (value < min) { + } + else if (value < min) { return min; } return value; |