Skip to content

Commit cf3a333

Browse files
committed
casts
1 parent e3ce518 commit cf3a333

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stl/inc/xutility

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6298,8 +6298,9 @@ namespace ranges {
62986298
{
62996299
if constexpr (_Elements_are_2_bytes) {
63006300
_STL_INTERNAL_STATIC_ASSERT(_Is_sized);
6301-
_Result =
6302-
_CSTD wmemchr(_First_ptr, static_cast<wchar_t>(_Val), static_cast<size_t>(_Last - _First));
6301+
_Result = reinterpret_cast<_Ptr_t>(
6302+
const_cast<wchar_t*>(_CSTD wmemchr(reinterpret_cast<const wchar_t*>(_First_ptr),
6303+
static_cast<wchar_t>(_Val), static_cast<size_t>(_Last - _First))));
63036304
} else {
63046305
_STL_INTERNAL_STATIC_ASSERT(_Elements_are_1_byte);
63056306
size_t _Count;

0 commit comments

Comments
 (0)