aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/12-allocator-fix.patch
blob: 8907f411dde5f6a446e9e15d71055c1b896d93e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/__memory/allocator.h b/include/__memory/allocator.h
index 915ff7c..318c19d 100644
--- a/include/__memory/allocator.h
+++ b/include/__memory/allocator.h
@@ -109,7 +109,7 @@ public:
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
     void deallocate(_Tp* __p, size_t __n) _NOEXCEPT {
         if (__libcpp_is_constant_evaluated()) {
-            ::operator delete(__p);
+            ::operator delete((void*)__p);
         } else {
             _VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
         }