mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
shared_ptr.hpp: minor fixup for arrays
This commit is contained in:
parent
ff211a9508
commit
aa7e2376ec
|
|
@ -324,7 +324,7 @@ namespace stx
|
||||||
|
|
||||||
if constexpr (alignof(etype) > (__STDCPP_DEFAULT_NEW_ALIGNMENT__))
|
if constexpr (alignof(etype) > (__STDCPP_DEFAULT_NEW_ALIGNMENT__))
|
||||||
{
|
{
|
||||||
bytes = new (std::align_val_t{alignof(etype)}) std::byte[size];
|
bytes = static_cast<std::byte*>(::operator new(size, std::align_val_t{alignof(etype)}));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue