Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stickz committed Jul 4, 2024
1 parent b5745fa commit c98651e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libtorrent/src/torrent/bitfield.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned int*>(itr));
#endif
Expand All @@ -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
Expand Down

0 comments on commit c98651e

Please sign in to comment.