diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-05 00:57:53 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-05 20:08:57 +0200 |
commit | 472454cdeda1ab87e879670f44993960013973ff (patch) | |
tree | ad8c5c51d9ce3fcab18579f573aa35dd8c2a22a2 /Kernel/Heap | |
parent | 112de58fe0601ef95544ab474f35ade14f947391 (diff) | |
download | serenity-472454cdeda1ab87e879670f44993960013973ff.zip |
Kernel: Switch static_asserts of a type size to AK::AssertSize
This will provide better debug ability when the size comparison fails.
Diffstat (limited to 'Kernel/Heap')
-rw-r--r-- | Kernel/Heap/SlabAllocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Heap/SlabAllocator.cpp b/Kernel/Heap/SlabAllocator.cpp index c20f676bad..9a74e8c17c 100644 --- a/Kernel/Heap/SlabAllocator.cpp +++ b/Kernel/Heap/SlabAllocator.cpp @@ -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; |