aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@unitus.it>2003-05-02 00:53:13 +0200
committerPaolo Carlini <paolo@gcc.gnu.org>2003-05-01 22:53:13 +0000
commitf4731b64d269a2c16727a3db9da868707e0cbb14 (patch)
treeeb209f0279109ba3f145f84ce6b0c43522a15836
parente78d8df476bd4e52e595b1e87fdc59da383725cd (diff)
downloadgcc-f4731b64d269a2c16727a3db9da868707e0cbb14.zip
gcc-f4731b64d269a2c16727a3db9da868707e0cbb14.tar.gz
gcc-f4731b64d269a2c16727a3db9da868707e0cbb14.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/streambuf.tcc4
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 331d5e5..fe53992 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/abi_check.cc (check_version): Update known versions.
diff --git a/libstdc++-v3/include/bits/streambuf.tcc b/libstdc++-v3/include/bits/streambuf.tcc
index e4aab0c..08b24c8 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);