aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2017-11-14 18:00:53 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2017-11-14 18:00:53 +0000
commitd2e9196e5f8849bac2d4fa7fa5599eb2338c76bd (patch)
treed7e98b746a3f9e369f0bf12dd52b79b891a20c77 /libstdc++-v3/include
parent17636f266251d9d6bcc79f3b64cd275f63867a9a (diff)
downloadgcc-d2e9196e5f8849bac2d4fa7fa5599eb2338c76bd.zip
gcc-d2e9196e5f8849bac2d4fa7fa5599eb2338c76bd.tar.gz
gcc-d2e9196e5f8849bac2d4fa7fa5599eb2338c76bd.tar.bz2
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
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/locale_conv.h2
1 files changed, 1 insertions, 1 deletions
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;