mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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.
This commit is contained in:
parent
a6f2e9539b
commit
503d198741
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user