diff --git a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c index 0650a918..c1dc27c5 100644 --- a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +++ b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c @@ -514,8 +514,8 @@ equal(signed char b, signed char c) static unsigned char negative(signed char b) { - uint64_t x = - b; /* 18446744073709551361..18446744073709551615: yes; 0..255: no */ + /* 18446744073709551361..18446744073709551615: yes; 0..255: no */ + uint64_t x = b; x >>= 63; /* 1: yes; 0: no */