Skip to content

Commit 63af69d

Browse files
committed
Use reinterpret_cast
1 parent cb730ad commit 63af69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__utility/small_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class __small_buffer {
6868
if constexpr (__fits_in_buffer<_Stored>) {
6969
return std::launder(reinterpret_cast<_Stored*>(__buffer_));
7070
} else {
71-
byte* __allocation = static_cast<byte*>(std::__libcpp_allocate<_Stored>(__element_count(1)));
71+
byte* __allocation = reinterpret_cast<byte*>(std::__libcpp_allocate<_Stored>(__element_count(1)));
7272
std::construct_at(reinterpret_cast<byte**>(__buffer_), __allocation);
7373
return std::launder(reinterpret_cast<_Stored*>(__allocation));
7474
}

0 commit comments

Comments
 (0)