Small fix.

This commit is contained in:
irungentoo 2015-12-09 09:10:03 -05:00
parent deb0b358a5
commit 8fa264e770
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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 (d1_abs)
++distance1;
if (distance1 != UINT8_MAX)
++distance1;
if (d2_abs)
++distance2;
if (distance2 != UINT8_MAX)
++distance2;
}
if (distance1 < distance2)