[cfe-commits] [libcxx] r170703 - /libcxx/trunk/include/istream

Howard Hinnant hhinnant at apple.com
Thu Dec 20 08:51:37 PST 2012


On Dec 20, 2012, at 11:34 AM, David Blaikie <dblaikie at gmail.com> wrote:

> On Thu, Dec 20, 2012 at 7:40 AM, Howard Hinnant <hhinnant at apple.com> wrote:
>> Author: hhinnant
>> Date: Thu Dec 20 09:40:28 2012
>> New Revision: 170703
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=170703&view=rev
>> Log:
>> Hyeon-Bin Jeong:  readsome() need to reset gcount to zero.  This fixes http://llvm.org/bugs/show_bug.cgi?id=14670.
>> 
>> Modified:
>>    libcxx/trunk/include/istream
> 
> Test case?

Thanks. Committed revision 170706.

Howard

> 
>> 
>> Modified: libcxx/trunk/include/istream
>> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/istream?rev=170703&r1=170702&r2=170703&view=diff
>> ==============================================================================
>> --- libcxx/trunk/include/istream (original)
>> +++ libcxx/trunk/include/istream Thu Dec 20 09:40:28 2012
>> @@ -1243,6 +1243,7 @@
>> streamsize
>> basic_istream<_CharT, _Traits>::readsome(char_type* __s, streamsize __n)
>> {
>> +    __gc_ = 0;
>>     streamsize __c = this->rdbuf()->in_avail();
>>     switch (__c)
>>     {
>> 
>> 
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list