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
This commit is contained in:
Paolo Carlini 2003-05-02 00:53:13 +02:00 committed by Paolo Carlini
parent e78d8df476
commit f4731b64d2
2 changed files with 7 additions and 2 deletions

View 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.

View File

@ -192,7 +192,7 @@ namespace std
for (;;)
{
streamsize __xtrct;
const size_t __avail = __sbin->_M_in_end
const ptrdiff_t __avail = __sbin->_M_in_end
- __sbin->_M_in_cur;
if (__avail)
{