Hyeon-Bin Jeong: readsome() need to reset gcount to zero. This fixes http://llvm.org/bugs/show_bug.cgi?id=14670.

llvm-svn: 170703
This commit is contained in:
Howard Hinnant 2012-12-20 15:40:28 +00:00
parent 19e8b7ecba
commit 3b42bdd58a
1 changed files with 1 additions and 0 deletions

View File

@ -1243,6 +1243,7 @@ template<class _CharT, class _Traits>
streamsize
basic_istream<_CharT, _Traits>::readsome(char_type* __s, streamsize __n)
{
__gc_ = 0;
streamsize __c = this->rdbuf()->in_avail();
switch (__c)
{