diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-20 00:55:45 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-20 00:55:45 +0000 |
| commit | 2f96ae63d69c976a42e4d674f75a2f138aa04b7c (patch) | |
| tree | 02f98ad8b39106f020eb626fb58179f878c88712 | |
| parent | fae75eb459bd4ef4e23704d7d1c687657fc8bdbd (diff) | |
| download | ppe42-gcc-2f96ae63d69c976a42e4d674f75a2f138aa04b7c.tar.gz ppe42-gcc-2f96ae63d69c976a42e4d674f75a2f138aa04b7c.zip | |
2003-02-19 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (overflow): According to
27.7.1.3, p5, actual output is performed by sputc(c).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63147 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
| -rw-r--r-- | libstdc++-v3/include/bits/sstream.tcc | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 469f36d1fa2..8e272cef203 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-02-19 Paolo Carlini <pcarlini@unitus.it> + + * include/bits/sstream.tcc (overflow): According to + 27.7.1.3, p5, actual output is performed by sputc(c). + 2003-02-19 Phil Edwards <pme@gcc.gnu.org> PR libstdc++/9582 diff --git a/libstdc++-v3/include/bits/sstream.tcc b/libstdc++-v3/include/bits/sstream.tcc index 32014bc396e..489f79f20a3 100644 --- a/libstdc++-v3/include/bits/sstream.tcc +++ b/libstdc++-v3/include/bits/sstream.tcc @@ -105,9 +105,7 @@ namespace std this->_M_buf_size = __len; _M_really_sync(this->_M_in_cur - this->_M_in_beg, this->_M_out_cur - this->_M_out_beg); - *this->_M_out_cur = traits_type::to_char_type(__c); - _M_out_cur_move(1); - __ret = __c; + __ret = this->sputc(traits_type::to_char_type(__c)); } } else |

