summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-22 16:01:08 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-22 16:01:08 +0100
commit503d198741e592bb0272fb2a637b1379ed844dfa (patch)
treed18cdef66b38f683be8cf904d771e2983ce8636e /toxcore
parenta6f2e9539b9f73e40076fe85d8f1152b279142e7 (diff)
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.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/assoc.c4
1 files changed, 2 insertions, 2 deletions
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)
230 * BUT: because the usage of the word "never" invokes Murphy's law, catch it */ 230 * BUT: because the usage of the word "never" invokes Murphy's law, catch it */
231 if (!retval) { 231 if (!retval) {
232#ifdef TOX_DEBUG 232#ifdef TOX_DEBUG
233 fprintf(stderr, "assoc::hash_collide: hash %u, bucket size %u => %u!", hash, (uint)assoc->candidates_bucket_size, 233 fprintf(stderr, "assoc::hash_collide: hash %u, bucket size %u => %u!", hash,
234 retval); 234 (unsigned int)assoc->candidates_bucket_size, retval);
235 assert(retval != 0); 235 assert(retval != 0);
236#endif 236#endif
237 retval = 1; 237 retval = 1;