Commit a66e6874 by Ulrich Drepper

(operator>>): Correct cast in last patch.

(getline): Likewise.

From-SVN: r24011
parent 163e9f96
...@@ -450,7 +450,7 @@ operator>> (istream &is, basic_string <charT, traits, Allocator> &s) ...@@ -450,7 +450,7 @@ operator>> (istream &is, basic_string <charT, traits, Allocator> &s)
sb->sungetc (); sb->sungetc ();
break; break;
} }
s += static_cast<char> (ch); s += static_cast<charT> (ch);
if (--w == 1) if (--w == 1)
break; break;
} }
...@@ -496,7 +496,7 @@ getline (istream &is, basic_string <charT, traits, Allocator>& s, charT delim) ...@@ -496,7 +496,7 @@ getline (istream &is, basic_string <charT, traits, Allocator>& s, charT delim)
if (ch == delim) if (ch == delim)
break; break;
s += static_cast<char> (ch); s += static_cast<charT> (ch);
if (s.length () == s.npos - 1) if (s.length () == s.npos - 1)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment