mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed warning.
This commit is contained in:
parent
836daa9e95
commit
1bfb76bafe
@ -1514,7 +1514,7 @@ static int handle_send_peers(Group_Chats *g_c, int groupnumber, const uint8_t *d
|
|||||||
|
|
||||||
const uint8_t *d = data;
|
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;
|
uint16_t peer_num;
|
||||||
memcpy(&peer_num, d, sizeof(peer_num));
|
memcpy(&peer_num, d, sizeof(peer_num));
|
||||||
peer_num = ntohs(peer_num);
|
peer_num = ntohs(peer_num);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user