summaryrefslogtreecommitdiff
path: root/protocols/Tox/libtox/src/toxcore/util.c
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-08-17 00:29:59 +0300
committeraunsane <aunsane@gmail.com>2018-08-18 13:08:40 +0300
commit22196f3cad4751f964c56da518bb57ab0e64ae97 (patch)
tree9830ac73ecd5047aaa4ae0f67139b14cb9f8c4d2 /protocols/Tox/libtox/src/toxcore/util.c
parent28d0e917496ecfd681e8cd3e3032519867993f9b (diff)
Tox: libtox updated to v0.2.6
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/util.c')
-rw-r--r--protocols/Tox/libtox/src/toxcore/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/libtox/src/toxcore/util.c b/protocols/Tox/libtox/src/toxcore/util.c
index f349e8fe0e..de01625eae 100644
--- a/protocols/Tox/libtox/src/toxcore/util.c
+++ b/protocols/Tox/libtox/src/toxcore/util.c
@@ -100,6 +100,11 @@ int32_t max_s32(int32_t a, int32_t b)
return a > b ? a : b;
}
+int32_t min_s32(int32_t a, int32_t b)
+{
+ return a < b ? a : b;
+}
+
uint32_t min_u32(uint32_t a, uint32_t b)
{
return a < b ? a : b;