mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00: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__))
|
||||
{
|
||||
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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user