From 503d198741e592bb0272fb2a637b1379ed844dfa Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 22 Aug 2016 16:01:08 +0100 Subject: Replace uint with unsigned int in assoc.c. uint is not a valid type on Windows. It's also not a valid type in C, but Linux and OSX define it somewhere. We can't rely on its existence. --- toxcore/assoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore') diff --git a/toxcore/assoc.c b/toxcore/assoc.c index 13d270b3..03e1d463 100644 --- a/toxcore/assoc.c +++ b/toxcore/assoc.c @@ -230,8 +230,8 @@ static hash_t hash_collide(const Assoc *assoc, hash_t hash) * BUT: because the usage of the word "never" invokes Murphy's law, catch it */ if (!retval) { #ifdef TOX_DEBUG - fprintf(stderr, "assoc::hash_collide: hash %u, bucket size %u => %u!", hash, (uint)assoc->candidates_bucket_size, - retval); + fprintf(stderr, "assoc::hash_collide: hash %u, bucket size %u => %u!", hash, + (unsigned int)assoc->candidates_bucket_size, retval); assert(retval != 0); #endif retval = 1; -- cgit v1.2.3