Commit f4731b64 by Paolo Carlini Committed by Paolo Carlini

streambuf.tcc (__copy_streambufs): Adjust the type of __avail to ptrdiff_t to…

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
parent e78d8df4
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> 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/abi_check.cc (check_version): Update known versions. * testsuite/abi_check.cc (check_version): Update known versions.
......
...@@ -192,8 +192,8 @@ namespace std ...@@ -192,8 +192,8 @@ namespace std
for (;;) for (;;)
{ {
streamsize __xtrct; streamsize __xtrct;
const size_t __avail = __sbin->_M_in_end const ptrdiff_t __avail = __sbin->_M_in_end
- __sbin->_M_in_cur; - __sbin->_M_in_cur;
if (__avail) if (__avail)
{ {
__xtrct = __sbout->sputn(__sbin->_M_in_cur, __avail); __xtrct = __sbout->sputn(__sbin->_M_in_cur, __avail);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment