diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 10:59:56 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 11:38:23 +0000 |
commit | 5d15b5930d2b3e442f3927d72a76dd6a9c3b3357 (patch) | |
tree | e6af47dd1c752a263a523f6719deab26c2c91559 /toxcore/util.c | |
parent | 503d9f7e229dcb777d347d690086c7827039cd39 (diff) |
Remove last use of the `MIN` macro.
We use functions for this instead.
Diffstat (limited to 'toxcore/util.c')
-rw-r--r-- | toxcore/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/util.c b/toxcore/util.c index f349e8fe..de01625e 100644 --- a/toxcore/util.c +++ b/toxcore/util.c | |||
@@ -100,6 +100,11 @@ int32_t max_s32(int32_t a, int32_t b) | |||
100 | return a > b ? a : b; | 100 | return a > b ? a : b; |
101 | } | 101 | } |
102 | 102 | ||
103 | int32_t min_s32(int32_t a, int32_t b) | ||
104 | { | ||
105 | return a < b ? a : b; | ||
106 | } | ||
107 | |||
103 | uint32_t min_u32(uint32_t a, uint32_t b) | 108 | uint32_t min_u32(uint32_t a, uint32_t b) |
104 | { | 109 | { |
105 | return a < b ? a : b; | 110 | return a < b ? a : b; |