From 0f6d5309875ce19d5256ccdb98c0fce5f37a0221 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 5 Nov 2024 16:22:31 +0100 Subject: [PATCH] gh-126433: Fix compiler warning on 32-bit Windows --- Modules/_hacl/Lib_Memzero0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_hacl/Lib_Memzero0.c b/Modules/_hacl/Lib_Memzero0.c index 5b1a2f7797db76..5c269d231de82f 100644 --- a/Modules/_hacl/Lib_Memzero0.c +++ b/Modules/_hacl/Lib_Memzero0.c @@ -36,7 +36,7 @@ void Lib_Memzero0_memzero0(void *dst, uint64_t len) { size_t len_ = (size_t) len; #ifdef _WIN32 - SecureZeroMemory(dst, len); + SecureZeroMemory(dst, len_); #elif defined(__APPLE__) && defined(__MACH__) memset_s(dst, len_, 0, len_); #elif (defined(__linux__) && !defined(LINUX_NO_EXPLICIT_BZERO)) || defined(__FreeBSD__)