mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
Kernel: Switch static_asserts of a type size to AK::AssertSize
This will provide better debug ability when the size comparison fails.
This commit is contained in:
parent
112de58fe0
commit
472454cded
15 changed files with 25 additions and 19 deletions
|
@ -102,7 +102,7 @@ private:
|
|||
void* m_base { nullptr };
|
||||
void* m_end { nullptr };
|
||||
|
||||
static_assert(sizeof(FreeSlab) == templated_slab_size);
|
||||
static_assert(AssertSize<FreeSlab, templated_slab_size>());
|
||||
};
|
||||
|
||||
static SlabAllocator<16> s_slab_allocator_16;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue