Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ege Çetin committed Jan 11, 2025
1 parent a4c4d6d commit 10daefd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Common++/header/MacAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ namespace pcpp
/// @param[in] fourthOctet Represent the fourth octet in the address
/// @param[in] fifthOctet Represent the fifth octet in the address
/// @param[in] sixthOctet Represent the sixth octet in the address
MacAddress(uint8_t firstOctet, uint8_t secondOctet, uint8_t thirdOctet, uint8_t fourthOctet,
uint8_t fifthOctet, uint8_t sixthOctet)
MacAddress(uint8_t firstOctet, uint8_t secondOctet, uint8_t thirdOctet, uint8_t fourthOctet, uint8_t fifthOctet,
uint8_t sixthOctet)
{
m_Address[0] = firstOctet;
m_Address[1] = secondOctet;
Expand Down
2 changes: 1 addition & 1 deletion Common++/src/IpAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ namespace pcpp

uint64_t IPv4Network::getTotalAddressCount() const
{
const std::bitset<32> bitset((~m_Mask));
const std::bitset<32> bitset(~static_cast<uint64_t>(m_Mask));
return 1ULL << bitset.count();
}

Expand Down

0 comments on commit 10daefd

Please sign in to comment.