summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-01-28 09:22:57 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-28 21:40:45 +0000
commita0513a360a6653a60a31b2827c8afea6fdd39fe7 (patch)
tree454a79afefbc688f0dbecdfaf853795d555f9934 /Userland
parent53ebe607f886fa2e1261684250567cac358778ad (diff)
downloadserenity-a0513a360a6653a60a31b2827c8afea6fdd39fe7.zip
LibGfx: Use AssertSize<> in ICC/Profile.cpp
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/ICC/Profile.cpp4
1 files changed, 2 insertions, 2 deletions
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<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))