streambuf.tcc (__copy_streambufs): Adjust the type of __avail to ptrdiff_t to avoid...
authorPaolo Carlini <pcarlini@unitus.it>
Thu, 1 May 2003 22:53:13 +0000 (00:53 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 1 May 2003 22:53:13 +0000 (22:53 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/streambuf.tcc

index 331d5e59e012c8f6b6905e360c72e92e678c0c2d..fe539924d25467540a91093f85d92ed6b03bcf2e 100644 (file)
@@ -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.
index e4aab0ccc3141846ea10576a7fc4806ad544c7ba..08b24c81d36a74c3681dfd1b7e1c3e35b4e496b4 100644 (file)
@@ -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);