From 3b1552909cd2833deeab84781bb0f0096593e1d6 Mon Sep 17 00:00:00 2001 From: stickz Date: Thu, 4 Jul 2024 16:09:44 -0400 Subject: [PATCH] Fixes --- libtorrent/rak/algorithm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/rak/algorithm.h b/libtorrent/rak/algorithm.h index a176d52c..bd748f02 100644 --- a/libtorrent/rak/algorithm.h +++ b/libtorrent/rak/algorithm.h @@ -297,7 +297,7 @@ make_base(_InputIter __first, _InputIter __last, _Ftor __ftor) { template inline int popcount_wrapper(T t) { #if USE_AVX2_POPCOUNT - return popcnt_AVX2_lookup(t, std::numeric_limits::max); + return popcnt_AVX2_lookup(t, sizeof(T)); #else #if USE_BUILTIN_POPCOUNT if (std::numeric_limits::digits <= std::numeric_limits::digits)