Skip to content

Commit

Permalink
Changed const to constexpr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimi1010 committed Jan 8, 2025
1 parent 03525c8 commit d0a507a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packet++/src/ArpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace pcpp
ArpLayer::ArpLayer(ArpOpcode opCode, const MacAddress& senderMacAddr, const MacAddress& targetMacAddr,
const IPv4Address& senderIpAddr, const IPv4Address& targetIpAddr)
{
const size_t headerLen = sizeof(arphdr);
constexpr size_t headerLen = sizeof(arphdr);
m_DataLen = headerLen;
m_Data = new uint8_t[headerLen];
memset(m_Data, 0, sizeof(headerLen));
Expand Down

0 comments on commit d0a507a

Please sign in to comment.