From d1592643a611d4fbb63699d07b0df0466f4ea43f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 7 Oct 2020 13:09:59 +0200 Subject: [PATCH] LibJS: Make sure the HeapBlock cell storage is alignas(Cell) --- Libraries/LibJS/Heap/HeapBlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Heap/HeapBlock.h b/Libraries/LibJS/Heap/HeapBlock.h index 48d7ebd554..69f991c6bf 100644 --- a/Libraries/LibJS/Heap/HeapBlock.h +++ b/Libraries/LibJS/Heap/HeapBlock.h @@ -101,7 +101,7 @@ private: Heap& m_heap; size_t m_cell_size { 0 }; FreelistEntry* m_freelist { nullptr }; - u8 m_storage[]; + alignas(Cell) u8 m_storage[]; }; }