Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c5670ac6
Commit
c5670ac6
authored
Nov 23, 1998
by
Ulrich Drepper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(operator>>): Cast new character to char before adding to string.
(getline): Likewise. From-SVN: r23786
parent
9855b854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libstdc++/std/bastring.cc
+3
-3
No files found.
libstdc++/std/bastring.cc
View file @
c5670ac6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment