From d2e9196e5f8849bac2d4fa7fa5599eb2338c76bd Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 14 Nov 2017 18:00:53 +0000 Subject: Fix typo in std::wbuffer_convert * include/bits/locale_conv.h (wbuffer_convert::_M_conv_get): Fix typo. * testsuite/22_locale/conversions/buffer/3.cc: New test. From-SVN: r254735 --- libstdc++-v3/include/bits/locale_conv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstdc++-v3/include') diff --git a/libstdc++-v3/include/bits/locale_conv.h b/libstdc++-v3/include/bits/locale_conv.h index 47c8dee..b8f77dc 100644 --- a/libstdc++-v3/include/bits/locale_conv.h +++ b/libstdc++-v3/include/bits/locale_conv.h @@ -431,7 +431,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 streamsize __nbytes = sizeof(_M_get_buf) - _M_unconv; __nbytes = std::min(__nbytes, _M_buf->in_avail()); if (__nbytes < 1) - __nbytes == 1; + __nbytes = 1; __nbytes = _M_buf->sgetn(_M_get_buf + _M_unconv, __nbytes); if (__nbytes < 1) return false; -- cgit v1.1