Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stickz committed Jul 4, 2024
1 parent ba1dd0c commit 3b15529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtorrent/rak/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ make_base(_InputIter __first, _InputIter __last, _Ftor __ftor) {
template<typename T>
inline int popcount_wrapper(T t) {
#if USE_AVX2_POPCOUNT
return popcnt_AVX2_lookup(t, std::numeric_limits<T>::max);
return popcnt_AVX2_lookup(t, sizeof(T));
#else
#if USE_BUILTIN_POPCOUNT
if (std::numeric_limits<T>::digits <= std::numeric_limits<unsigned int>::digits)
Expand Down

0 comments on commit 3b15529

Please sign in to comment.