Skip to content

Commit

Permalink
oops one more
Browse files Browse the repository at this point in the history
  • Loading branch information
Ege Çetin committed Jan 11, 2025
1 parent 3ec344e commit cbe3a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common++/src/IpAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ namespace pcpp
uint64_t IPv6Network::getTotalAddressCount() const
{
int numOfBitset = 0;
for (const unsigned char byteIndex : m_Mask)
for (const auto &byte : m_Mask)
{
const std::bitset<8> bitset(static_cast<uint8_t>(~byteIndex));
const std::bitset<8> bitset(static_cast<uint8_t>(~byte));
numOfBitset += static_cast<int>(bitset.count());
}

Expand Down

0 comments on commit cbe3a03

Please sign in to comment.