mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 08:13:58 +08:00
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:
parent
e78d8df476
commit
f4731b64d2
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user