mirror of
https://github.com/openssl/openssl.git
synced 2024-12-14 20:43:46 +08:00
providers/implementations/kdfs/argon2.c: Don't use UINT64_C
With less than C99 compilers, this macro isn't guaranteed to exist, and the value passed to it is 32 bits, so explicitly ending it with 'UL' is correct in all cases. We simply leave it to the compiler to extend it appropriately for uint64_t. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20547)
This commit is contained in:
parent
41c3c71382
commit
4b738c1ac9
@ -307,7 +307,7 @@ static ossl_inline uint64_t rotr64(const uint64_t w, const unsigned int c)
|
||||
|
||||
static ossl_inline uint64_t mul_lower(uint64_t x, uint64_t y)
|
||||
{
|
||||
const uint64_t m = UINT64_C(0xFFFFFFFF);
|
||||
const uint64_t m = 0xFFFFFFFFUL;
|
||||
return (x & m) * (y & m);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user