From 4b738c1ac945a3f1a985df79ff8c37a23d2f2fe0 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 20 Mar 2023 08:09:40 +0100 Subject: 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 Reviewed-by: Tom Cosgrove Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20547) --- providers/implementations/kdfs/argon2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'providers') diff --git a/providers/implementations/kdfs/argon2.c b/providers/implementations/kdfs/argon2.c index 768dcfe1bf..60c8fff1b8 100644 --- a/providers/implementations/kdfs/argon2.c +++ b/providers/implementations/kdfs/argon2.c @@ -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); } -- cgit v1.2.1