1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibJS: Make sure the HeapBlock cell storage is alignas(Cell)

This commit is contained in:
Andreas Kling 2020-10-07 13:09:59 +02:00
parent 51dbea3a0e
commit d1592643a6

View file

@ -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[];
};
}