mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
Userland: Switch static_assert of type sizes to AK::AssertSize
This commit is contained in:
parent
472454cded
commit
3e45c3ed90
5 changed files with 7 additions and 7 deletions
|
@ -23,7 +23,7 @@ struct ICONDIR {
|
|||
u16 must_be_1 = 0;
|
||||
u16 image_count = 0;
|
||||
};
|
||||
static_assert(sizeof(ICONDIR) == 6);
|
||||
static_assert(AssertSize<ICONDIR, 6>());
|
||||
|
||||
struct ICONDIRENTRY {
|
||||
u8 width;
|
||||
|
@ -35,7 +35,7 @@ struct ICONDIRENTRY {
|
|||
u32 size;
|
||||
u32 offset;
|
||||
};
|
||||
static_assert(sizeof(ICONDIRENTRY) == 16);
|
||||
static_assert(AssertSize<ICONDIRENTRY, 16>());
|
||||
|
||||
struct [[gnu::packed]] BMPFILEHEADER {
|
||||
u8 signature[2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue