diff options
Diffstat (limited to 'libcxx/include/__std_stream')
-rw-r--r-- | libcxx/include/__std_stream | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__std_stream b/libcxx/include/__std_stream index f867cd23bdd..fb5a346f10d 100644 --- a/libcxx/include/__std_stream +++ b/libcxx/include/__std_stream @@ -297,7 +297,7 @@ __stdoutbuf<_CharT>::overflow(int_type __c) return traits_type::eof(); if (__r == codecvt_base::partial) { - pbase = (char_type*)__e; + pbase = const_cast<char_type*>(__e); } } else |