summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/std/bastring.cc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libstdc++/std/bastring.cc')
-rw-r--r--contrib/libstdc++/std/bastring.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libstdc++/std/bastring.cc b/contrib/libstdc++/std/bastring.cc
index b5f7a0d..3093b9e 100644
--- a/contrib/libstdc++/std/bastring.cc
+++ b/contrib/libstdc++/std/bastring.cc
@@ -39,7 +39,7 @@ operator delete (void * ptr)
{
Allocator::deallocate(ptr, sizeof(Rep) +
reinterpret_cast<Rep *>(ptr)->res *
- sizeof (charT));
+ sizeof (charT));
}
template <class charT, class traits, class Allocator>
@@ -450,7 +450,7 @@ operator>> (istream &is, basic_string <charT, traits, Allocator> &s)
sb->sungetc ();
break;
}
- s += 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 += ch;
+ s += static_cast<charT> (ch);
if (s.length () == s.npos - 1)
{
OpenPOWER on IntegriCloud