mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-12 04:14:35 +00:00
endian.hpp: fix zero array warning
This commit is contained in:
parent
6a1a0bf48d
commit
6e7fbc5c5c
@ -23,7 +23,7 @@ namespace stx
|
||||
|
||||
struct type64
|
||||
{
|
||||
alignas(8) std::uint64_t data[sizeof(T) / 8];
|
||||
alignas(8) std::uint64_t data[sizeof(T) < 8 ? 1 : sizeof(T) / 8];
|
||||
};
|
||||
|
||||
using type = std::conditional_t<(Align >= 8 && sizeof(T) % 8 == 0), type64, type8>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user