We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb730ad commit 63af69dCopy full SHA for 63af69d
libcxx/include/__utility/small_buffer.h
@@ -68,7 +68,7 @@ class __small_buffer {
68
if constexpr (__fits_in_buffer<_Stored>) {
69
return std::launder(reinterpret_cast<_Stored*>(__buffer_));
70
} else {
71
- byte* __allocation = static_cast<byte*>(std::__libcpp_allocate<_Stored>(__element_count(1)));
+ byte* __allocation = reinterpret_cast<byte*>(std::__libcpp_allocate<_Stored>(__element_count(1)));
72
std::construct_at(reinterpret_cast<byte**>(__buffer_), __allocation);
73
return std::launder(reinterpret_cast<_Stored*>(__allocation));
74
}
0 commit comments