From c13fb9a34dbf603c9dd7450bb34f83ac068465e8 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 17 Jun 2015 23:11:10 -0400 Subject: [PATCH] Fixed warning. --- toxcore/onion_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 90eea451..4f049fbc 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -219,7 +219,7 @@ static _Bool path_timed_out(Onion_Client_Paths *onion_paths, uint32_t pathnum) */ static int random_path(const Onion_Client *onion_c, Onion_Client_Paths *onion_paths, uint32_t pathnum, Onion_Path *path) { - if (pathnum == ~0) { + if (pathnum == UINT32_MAX) { pathnum = rand() % NUMBER_ONION_PATHS; } else { pathnum = pathnum % NUMBER_ONION_PATHS;