1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 04:25:10 -07:00

Remove unneeded casts

Fixes #954
This commit is contained in:
Frank Denis 2020-05-05 01:25:42 +02:00
parent c68b071e52
commit ce19bc7a69

View File

@ -131,8 +131,7 @@ fe25519_cmov(fe25519 f, const fe25519 g, unsigned int b)
"movq %[t0], 24(%[a])\n"
"movq %[t1], 32(%[a])\n"
: [ t0 ] "=&r"(t0), [ t1 ] "=&r"(t1), [ t2 ] "=&r"(t2)
: [ a ] "r"(*(unsigned char(*)[40]) f),
[ b ] "r"(*(const unsigned char(*)[40]) g), [ c ] "r"(b)
: [ a ] "r"(f), [ b ] "r"(g), [ c ] "r"(b)
: "cc");
#else
uint64_t mask = (uint64_t) (-(int64_t) b);