diff options
author | Ulrich Drepper <drepper@gcc.gnu.org> | 1998-11-30 09:40:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@gcc.gnu.org> | 1998-11-30 09:40:56 +0000 |
commit | a66e687475b33bddb855e66c11d994bf6190a72c (patch) | |
tree | 59bf3c851ab4c7eca1bfc920562f5e50c6be7b0c /libstdc++/std/bastring.cc | |
parent | 163e9f96a734ce598cde87caa29e842f262d5277 (diff) | |
download | gcc-a66e687475b33bddb855e66c11d994bf6190a72c.zip gcc-a66e687475b33bddb855e66c11d994bf6190a72c.tar.gz gcc-a66e687475b33bddb855e66c11d994bf6190a72c.tar.bz2 |
(operator>>): Correct cast in last patch.
(getline): Likewise.
From-SVN: r24011
Diffstat (limited to 'libstdc++/std/bastring.cc')
-rw-r--r-- | libstdc++/std/bastring.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++/std/bastring.cc b/libstdc++/std/bastring.cc index 4ecef59..3093b9e1 100644 --- a/libstdc++/std/bastring.cc +++ b/libstdc++/std/bastring.cc @@ -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) { |