diff options
author | Ulrich Drepper <drepper@cygnus.com> | 1998-11-30 09:40:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@cygnus.com> | 1998-11-30 09:40:56 +0000 |
commit | 18174b2cdb9c7d4e55d83bfcdc358783e6ea5d64 (patch) | |
tree | 59bf3c851ab4c7eca1bfc920562f5e50c6be7b0c /libstdc++/std | |
parent | b8ac5b20e8872b53c0f2e7247e8421477229dfcc (diff) |
(operator>>): Correct cast in last patch.
(getline): Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@24011 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++/std')
-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 4ecef59e3df..3093b9e129d 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) { |