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

(getline): Likewise.

From-SVN: r24011
This commit is contained in:
Ulrich Drepper 1998-11-30 09:40:56 +00:00
parent 163e9f96a7
commit a66e687475

View File

@ -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)
{