summaryrefslogtreecommitdiff
path: root/libstdc++/std/bastring.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++/std/bastring.cc')
-rw-r--r--libstdc++/std/bastring.cc4
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)
{