From 1bfb76bafe18ac8233c675f956662ea4ac764507 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 13 Jun 2015 22:50:45 -0400 Subject: Fixed warning. --- toxcore/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/group.c b/toxcore/group.c index af2cb492..2eadaf74 100644 --- a/toxcore/group.c +++ b/toxcore/group.c @@ -1514,7 +1514,7 @@ static int handle_send_peers(Group_Chats *g_c, int groupnumber, const uint8_t *d const uint8_t *d = data; - while ((length - (d - data)) >= sizeof(uint16_t) + crypto_box_PUBLICKEYBYTES * 2 + 1) { + while ((unsigned int)(length - (d - data)) >= sizeof(uint16_t) + crypto_box_PUBLICKEYBYTES * 2 + 1) { uint16_t peer_num; memcpy(&peer_num, d, sizeof(peer_num)); peer_num = ntohs(peer_num); -- cgit v1.2.3