diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2003-05-02 00:53:13 +0200 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-05-01 22:53:13 +0000 |
commit | f4731b64d269a2c16727a3db9da868707e0cbb14 (patch) | |
tree | eb209f0279109ba3f145f84ce6b0c43522a15836 /libstdc++-v3/include/bits | |
parent | e78d8df476bd4e52e595b1e87fdc59da383725cd (diff) | |
download | gcc-f4731b64d269a2c16727a3db9da868707e0cbb14.tar.gz |
streambuf.tcc (__copy_streambufs): Adjust the type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Adjust the
type of __avail to ptrdiff_t to avoid signed-unsigned warning.
From-SVN: r66356
Diffstat (limited to 'libstdc++-v3/include/bits')
-rw-r--r-- | libstdc++-v3/include/bits/streambuf.tcc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/streambuf.tcc b/libstdc++-v3/include/bits/streambuf.tcc index e4aab0ccc31..08b24c81d36 100644 --- a/libstdc++-v3/include/bits/streambuf.tcc +++ b/libstdc++-v3/include/bits/streambuf.tcc @@ -192,8 +192,8 @@ namespace std for (;;) { streamsize __xtrct; - const size_t __avail = __sbin->_M_in_end - - __sbin->_M_in_cur; + const ptrdiff_t __avail = __sbin->_M_in_end + - __sbin->_M_in_cur; if (__avail) { __xtrct = __sbout->sputn(__sbin->_M_in_cur, __avail); |