diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-30 09:40:56 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-30 09:40:56 +0000 |
commit | 23124e089e75d16f15bfda9bfe6300c477be42cd (patch) | |
tree | 59bf3c851ab4c7eca1bfc920562f5e50c6be7b0c /libstdc++ | |
parent | f07215b7f737a5e574978c12af1efb66c865067a (diff) | |
download | gcc-23124e089e75d16f15bfda9bfe6300c477be42cd.tar.gz |
(operator>>): Correct cast in last patch.
(getline): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24011 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-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) { |