From c98651e11fbabcf5cbb807c2983523f793ffff21 Mon Sep 17 00:00:00 2001 From: stickz Date: Thu, 4 Jul 2024 19:14:12 -0400 Subject: [PATCH] fix --- libtorrent/src/torrent/bitfield.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtorrent/src/torrent/bitfield.cc b/libtorrent/src/torrent/bitfield.cc index 11facf88..dbb3f373 100644 --- a/libtorrent/src/torrent/bitfield.cc +++ b/libtorrent/src/torrent/bitfield.cc @@ -95,7 +95,7 @@ Bitfield::update() { while (itr + sizeof(unsigned int) <= last) { #if USE_AVX2_POPCOUNT - m_set += rak::popcount_wrapper_avx2(*(__packed unsigned int*)itr); + m_set += rak::popcount_wrapper_avx2(*(unsigned int*)itr); #else m_set += rak::popcount_wrapper(*reinterpret_cast(itr)); #endif @@ -104,7 +104,7 @@ Bitfield::update() { while (itr != last) { #if USE_AVX2_POPCOUNT - m_set += rak::popcount_wrapper_avx2(*(__packed unsigned int*)itr++); + m_set += rak::popcount_wrapper_avx2(*(unsigned int*)itr++); #else m_set += rak::popcount_wrapper(*itr++); #endif