mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Kernel: Switch static_asserts of a type size to AK::AssertSize
This will provide better debug ability when the size comparison fails.
This commit is contained in:
parent
112de58fe0
commit
472454cded
15 changed files with 25 additions and 19 deletions
|
@ -40,7 +40,7 @@ private:
|
|||
// NOTE: The rest of the header is 4 bytes
|
||||
};
|
||||
|
||||
static_assert(sizeof(ICMPHeader) == 4);
|
||||
static_assert(AssertSize<ICMPHeader, 4>());
|
||||
|
||||
struct [[gnu::packed]] ICMPEchoPacket {
|
||||
ICMPHeader header;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue