From aa7e2376ec62f1920f20a6cb6fad816604a96bfe Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 3 Feb 2021 22:01:30 +0300 Subject: [PATCH] shared_ptr.hpp: minor fixup for arrays --- rpcs3/util/shared_ptr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/util/shared_ptr.hpp b/rpcs3/util/shared_ptr.hpp index 4a8d7ff8e6..b716bc860c 100644 --- a/rpcs3/util/shared_ptr.hpp +++ b/rpcs3/util/shared_ptr.hpp @@ -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(::operator new(size, std::align_val_t{alignof(etype)})); } else {