diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-20 22:07:57 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-20 22:07:57 +0000 |
commit | 2321daa7b7cc076dfcc254b3a687b6c0d8efcf7a (patch) | |
tree | 45bdedf211ca29ab9b267fe198cce41c1f494d79 /libstdc++-v3/src | |
parent | a8c07dfe518c46d8c75cb4d3a4f484dfc593eb28 (diff) | |
download | gcc-2321daa7b7cc076dfcc254b3a687b6c0d8efcf7a.tar.gz |
2005-07-20 Paolo Carlini <pcarlini@suse.de>
* include/bits/streambuf.tcc (xsgetn, xsputn): Use streamsize
instead of size_t.
* src/streambuf.cc (__copy_streambufs): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102204 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/streambuf.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/src/streambuf.cc b/libstdc++-v3/src/streambuf.cc index 2f9640950e0..7badf94a0d2 100644 --- a/libstdc++-v3/src/streambuf.cc +++ b/libstdc++-v3/src/streambuf.cc @@ -1,6 +1,6 @@ // Stream buffer classes -*- C++ -*- -// Copyright (C) 2004 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -45,10 +45,10 @@ namespace std traits_type::int_type __c = __sbin->sgetc(); while (!traits_type::eq_int_type(__c, traits_type::eof())) { - const size_t __n = __sbin->egptr() - __sbin->gptr(); + const streamsize __n = __sbin->egptr() - __sbin->gptr(); if (__n > 1) { - const size_t __wrote = __sbout->sputn(__sbin->gptr(), __n); + const streamsize __wrote = __sbout->sputn(__sbin->gptr(), __n); __sbin->gbump(__wrote); __ret += __wrote; if (__wrote < __n) @@ -78,10 +78,10 @@ namespace std traits_type::int_type __c = __sbin->sgetc(); while (!traits_type::eq_int_type(__c, traits_type::eof())) { - const size_t __n = __sbin->egptr() - __sbin->gptr(); + const streamsize __n = __sbin->egptr() - __sbin->gptr(); if (__n > 1) { - const size_t __wrote = __sbout->sputn(__sbin->gptr(), __n); + const streamsize __wrote = __sbout->sputn(__sbin->gptr(), __n); __sbin->gbump(__wrote); __ret += __wrote; if (__wrote < __n) |