mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +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
|
@ -36,7 +36,7 @@ struct PNG_IHDR {
|
|||
u8 interlace_method { 0 };
|
||||
};
|
||||
|
||||
static_assert(sizeof(PNG_IHDR) == 13);
|
||||
static_assert(AssertSize<PNG_IHDR, 13>());
|
||||
|
||||
struct Scanline {
|
||||
u8 filter { 0 };
|
||||
|
@ -211,7 +211,7 @@ union [[gnu::packed]] Pixel {
|
|||
u8 a;
|
||||
};
|
||||
};
|
||||
static_assert(sizeof(Pixel) == 4);
|
||||
static_assert(AssertSize<Pixel, 4>());
|
||||
|
||||
template<bool has_alpha, u8 filter_type>
|
||||
ALWAYS_INLINE static void unfilter_impl(Gfx::Bitmap& bitmap, int y, const void* dummy_scanline_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue