mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
LibGfx: Use AssertSize<> in ICC/Profile.cpp
This commit is contained in:
parent
53ebe607f8
commit
a0513a360a
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ struct ICCHeader {
|
|||
u8 profile_id[16];
|
||||
u8 reserved[28];
|
||||
};
|
||||
static_assert(sizeof(ICCHeader) == 128);
|
||||
static_assert(AssertSize<ICCHeader, 128>());
|
||||
|
||||
ErrorOr<u32> parse_size(ICCHeader const& header, ReadonlyBytes icc_bytes)
|
||||
{
|
||||
|
@ -623,7 +623,7 @@ ErrorOr<void> Profile::read_tag_table(ReadonlyBytes bytes)
|
|||
BigEndian<u32> offset_to_beginning_of_tag_data_element;
|
||||
BigEndian<u32> size_of_tag_data_element;
|
||||
};
|
||||
static_assert(sizeof(TagTableEntry) == 12);
|
||||
static_assert(AssertSize<TagTableEntry, 12>());
|
||||
|
||||
tag_table_bytes = tag_table_bytes.slice(sizeof(u32));
|
||||
if (tag_table_bytes.size() < tag_count * sizeof(TagTableEntry))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue