diff options
author | irungentoo <irungentoo@gmail.com> | 2015-06-25 22:18:34 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-06-25 22:18:34 -0400 |
commit | f2be0a3c5da66f62cc82b8aecca6350251e48f55 (patch) | |
tree | 0f84b0e4991da87a0fc47eeb1165b9c0da68d8c6 /toxcore/net_crypto.c | |
parent | 361d6cc0786b02ad51e91abfefa74b4f0c55db76 (diff) |
Fixed warning.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index a826f77a..be414799 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -2145,7 +2145,7 @@ static void send_crypto_packets(Net_Crypto *c) | |||
2145 | int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER); | 2145 | int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER); |
2146 | 2146 | ||
2147 | if (ret != -1) { | 2147 | if (ret != -1) { |
2148 | if (ret < conn->packets_left) { | 2148 | if ((unsigned int)ret < conn->packets_left) { |
2149 | conn->packets_left -= ret; | 2149 | conn->packets_left -= ret; |
2150 | } else { | 2150 | } else { |
2151 | conn->last_congestion_event = temp_time; | 2151 | conn->last_congestion_event = temp_time; |