summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/include/streambuf
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libc++/include/streambuf')
-rw-r--r--contrib/libc++/include/streambuf2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libc++/include/streambuf b/contrib/libc++/include/streambuf
index e128be5..e34ad23 100644
--- a/contrib/libc++/include/streambuf
+++ b/contrib/libc++/include/streambuf
@@ -540,7 +540,7 @@ basic_streambuf<_CharT, _Traits>::xsputn(const char_type* __s, streamsize __n)
{
if (__nout_ < __eout_)
*__nout_++ = *__s;
- else if (overflow(*__s) == __eof)
+ else if (overflow(traits_type::to_int_type(*__s)) == __eof)
break;
}
return __i;
OpenPOWER on IntegriCloud