mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 19:20:01 +08:00
(operator>>): Correct cast in last patch.
(getline): Likewise. From-SVN: r24011
This commit is contained in:
parent
163e9f96a7
commit
a66e687475
@ -450,7 +450,7 @@ operator>> (istream &is, basic_string <charT, traits, Allocator> &s)
|
||||
sb->sungetc ();
|
||||
break;
|
||||
}
|
||||
s += static_cast<char> (ch);
|
||||
s += static_cast<charT> (ch);
|
||||
if (--w == 1)
|
||||
break;
|
||||
}
|
||||
@ -496,7 +496,7 @@ getline (istream &is, basic_string <charT, traits, Allocator>& s, charT delim)
|
||||
if (ch == delim)
|
||||
break;
|
||||
|
||||
s += static_cast<char> (ch);
|
||||
s += static_cast<charT> (ch);
|
||||
|
||||
if (s.length () == s.npos - 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user