diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 05:16:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 05:17:30 +0300 |
commit | 9ba948a4859da3308033fa6dc54f74433d7e6a21 (patch) | |
tree | 0bd6e95eb59d9af03aa32d925c68e1cbebecc246 /source/blender/blenlib/intern/polyfill_2d.c | |
parent | 337eb8c1de4c57c34520b467d79779153335eecb (diff) |
Cleanup: style, use braces for blenlib
Diffstat (limited to 'source/blender/blenlib/intern/polyfill_2d.c')
-rw-r--r-- | source/blender/blenlib/intern/polyfill_2d.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/polyfill_2d.c b/source/blender/blenlib/intern/polyfill_2d.c index 5867cdee8bc..4044ebad56b 100644 --- a/source/blender/blenlib/intern/polyfill_2d.c +++ b/source/blender/blenlib/intern/polyfill_2d.c @@ -177,12 +177,15 @@ static void pf_ear_tip_cut(PolyFill *pf, PolyIndex *pi_ear_tip); BLI_INLINE eSign signum_enum(float a) { - if (UNLIKELY(a == 0.0f)) + if (UNLIKELY(a == 0.0f)) { return 0; - else if (a > 0.0f) + } + else if (a > 0.0f) { return 1; - else + } + else { return -1; + } } /** @@ -273,8 +276,8 @@ static uint kdtree2d_balance_recursive( j = pos; while (1) { - while (coords[nodes[++i].index][axis] < co) ; - while (coords[nodes[--j].index][axis] > co && j > neg) ; + while (coords[nodes[++i].index][axis] < co) { /* pass */ } + while (coords[nodes[--j].index][axis] > co && j > neg) { /* pass */ } if (i >= j) { break; |