projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9855b85
)
(operator>>): Cast new character to char before adding to string.
author
Ulrich Drepper
<drepper@gcc.gnu.org>
Mon, 23 Nov 1998 09:21:12 +0000
(09:21 +0000)
committer
Ulrich Drepper
<drepper@gcc.gnu.org>
Mon, 23 Nov 1998 09:21:12 +0000
(09:21 +0000)
(getline): Likewise.
From-SVN: r23786
libstdc++/std/bastring.cc
patch
|
blob
|
history
diff --git
a/libstdc++/std/bastring.cc
b/libstdc++/std/bastring.cc
index b5f7a0dbfef64614d40583d094b34512a713b5cb..4ecef59e3df6418866455ecfcac924c658ce4cfe 100644
(file)
--- a/
libstdc++/std/bastring.cc
+++ b/
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<char> (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<char> (ch)
;
if (s.length () == s.npos - 1)
{