From cbee548b0ab222852e22e6615277692149148aee Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 12 Dec 2013 13:49:49 -0500 Subject: Fixed arm bug. --- toxcore/net_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/net_crypto.c') diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 6b64c1b6..9b0f0443 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -753,7 +753,7 @@ static void receive_crypto(Net_Crypto *c) c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; } } else if (id_packet(c->lossless_udp, - c->crypto_connections[i].number) != -1) { + c->crypto_connections[i].number) != (uint8_t)~0) { /* This should not happen, timeout the connection if it does. */ c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; } @@ -782,7 +782,7 @@ static void receive_crypto(Net_Crypto *c) /* This should not happen, timeout the connection if it does. */ c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; } - } else if (id_packet(c->lossless_udp, c->crypto_connections[i].number) != -1) { + } else if (id_packet(c->lossless_udp, c->crypto_connections[i].number) != (uint8_t)~0) { /* This should not happen, timeout the connection if it does. */ c->crypto_connections[i].status = CRYPTO_CONN_TIMED_OUT; } -- cgit v1.2.3