BAN: Variant now aligns its data properly

This commit is contained in:
Bananymous 2023-04-12 00:17:45 +03:00
parent cafd546ce8
commit c35e7368f2
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace BAN
private:
static constexpr uint32_t m_size = Math::max(sizeof(T1), sizeof(T2));
uint8_t m_storage[m_size] = {};
alignas(Math::max(alignof(T1), alignof(T2))) uint8_t m_storage[m_size] = {};
uint32_t m_index = 0;
};