diff --git a/Userland/Libraries/LibGfx/ICC/Profile.cpp b/Userland/Libraries/LibGfx/ICC/Profile.cpp index f1db710583..25efbebb40 100644 --- a/Userland/Libraries/LibGfx/ICC/Profile.cpp +++ b/Userland/Libraries/LibGfx/ICC/Profile.cpp @@ -115,7 +115,7 @@ struct ICCHeader { u8 profile_id[16]; u8 reserved[28]; }; -static_assert(sizeof(ICCHeader) == 128); +static_assert(AssertSize()); ErrorOr parse_size(ICCHeader const& header, ReadonlyBytes icc_bytes) { @@ -623,7 +623,7 @@ ErrorOr Profile::read_tag_table(ReadonlyBytes bytes) BigEndian offset_to_beginning_of_tag_data_element; BigEndian size_of_tag_data_element; }; - static_assert(sizeof(TagTableEntry) == 12); + static_assert(AssertSize()); tag_table_bytes = tag_table_bytes.slice(sizeof(u32)); if (tag_table_bytes.size() < tag_count * sizeof(TagTableEntry))