diff options
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 79925552..8603b9c0 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -247,7 +247,7 @@ static unsigned int bit_by_bit_cmp(const uint8_t *pk1, const uint8_t *pk2) | |||
247 | void get_shared_key(const Mono_Time *mono_time, Shared_Keys *shared_keys, uint8_t *shared_key, | 247 | void get_shared_key(const Mono_Time *mono_time, Shared_Keys *shared_keys, uint8_t *shared_key, |
248 | const uint8_t *secret_key, const uint8_t *public_key) | 248 | const uint8_t *secret_key, const uint8_t *public_key) |
249 | { | 249 | { |
250 | uint32_t num = ~0; | 250 | uint32_t num = -1; |
251 | uint32_t curr = 0; | 251 | uint32_t curr = 0; |
252 | 252 | ||
253 | for (uint32_t i = 0; i < MAX_KEYS_PER_SLOT; ++i) { | 253 | for (uint32_t i = 0; i < MAX_KEYS_PER_SLOT; ++i) { |