mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-02 22:29:14 +00:00
endian.hpp: fix zero array warning
This commit is contained in:
parent
6a1a0bf48d
commit
6e7fbc5c5c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ namespace stx
|
||||||
|
|
||||||
struct type64
|
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>;
|
using type = std::conditional_t<(Align >= 8 && sizeof(T) % 8 == 0), type64, type8>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue