mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Small fix.
This commit is contained in:
parent
deb0b358a5
commit
8fa264e770
|
@ -100,10 +100,12 @@ int id_closest(const uint8_t *pk, const uint8_t *pk1, const uint8_t *pk2)
|
||||||
|
|
||||||
if (i == (crypto_box_PUBLICKEYBYTES - 1)) {
|
if (i == (crypto_box_PUBLICKEYBYTES - 1)) {
|
||||||
if (d1_abs)
|
if (d1_abs)
|
||||||
++distance1;
|
if (distance1 != UINT8_MAX)
|
||||||
|
++distance1;
|
||||||
|
|
||||||
if (d2_abs)
|
if (d2_abs)
|
||||||
++distance2;
|
if (distance2 != UINT8_MAX)
|
||||||
|
++distance2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (distance1 < distance2)
|
if (distance1 < distance2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user