Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-20 18:19:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-21 05:05:27 +0400
commit37242e6b0b1897b3d265a25684eacccfec36ffd0 (patch)
tree802e6f1cc5ac9c8baabeb88ad60374b2f5713553 /source/blender/blenlib/intern/sort.c
parent5ece1594ca725b58960756cbe1ebd2b1123584b6 (diff)
Code Cleanup: style
Diffstat (limited to 'source/blender/blenlib/intern/sort.c')
-rw-r--r--source/blender/blenlib/intern/sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/sort.c b/source/blender/blenlib/intern/sort.c
index 44110564948..a1b7296feb6 100644
--- a/source/blender/blenlib/intern/sort.c
+++ b/source/blender/blenlib/intern/sort.c
@@ -76,9 +76,9 @@ BLI_INLINE void swapfunc(char *a, char *b, int n, int swaptype)
BLI_INLINE char *med3(char *a, char *b, char *c, BLI_sort_cmp_t cmp, void *thunk)
{
- return CMP(thunk, a, b) < 0 ?
- (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
- :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
+ return CMP(thunk, a, b) < 0 ?
+ (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) :
+ (CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
}
/**