streambuf.tcc (xsgetn, xsputn): Use streamsize instead of size_t.
authorPaolo Carlini <pcarlini@suse.de>
Wed, 20 Jul 2005 22:07:57 +0000 (22:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 20 Jul 2005 22:07:57 +0000 (22:07 +0000)
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.

From-SVN: r102204

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

index 4f7b8db3831b087b09769f72e9bea13dd718fe39..810bc4ccb6f64be1c5d0aff4adbc054b27a7ebbf 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2005-07-18  Paolo Carlini  <pcarlini@suse.de>
 
        * config/locale/gnu/ctype_members.cc (do_is(mask, wchar_t)):
index bbce9e51b901a27a81b849c8f6909311a455e260..f7b9cff89dd7ab86fdc246e34bac2214bc06897c 100644 (file)
@@ -1,6 +1,6 @@
 // Stream buffer classes -*- C++ -*-
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -52,11 +52,11 @@ namespace std
       streamsize __ret = 0;
       while (__ret < __n)
        {
-         const size_t __buf_len = this->egptr() - this->gptr();
+         const streamsize __buf_len = this->egptr() - this->gptr();
          if (__buf_len)
            {
-             const size_t __remaining = __n - __ret;
-             const size_t __len = std::min(__buf_len, __remaining);
+             const streamsize __remaining = __n - __ret;
+             const streamsize __len = std::min(__buf_len, __remaining);
              traits_type::copy(__s, this->gptr(), __len);
              __ret += __len;
              __s += __len;
@@ -86,11 +86,11 @@ namespace std
       streamsize __ret = 0;
       while (__ret < __n)
        {
-         const size_t __buf_len = this->epptr() - this->pptr();
+         const streamsize __buf_len = this->epptr() - this->pptr();
          if (__buf_len)
            {
-             const size_t __remaining = __n - __ret;
-             const size_t __len = std::min(__buf_len, __remaining);
+             const streamsize __remaining = __n - __ret;
+             const streamsize __len = std::min(__buf_len, __remaining);
              traits_type::copy(this->pptr(), __s, __len);
              __ret += __len;
              __s += __len;
index 2f9640950e036b17dde80b971976d221e9976ac8..7badf94a0d233543d59c45d83a3d7ce70f6c7be6 100644 (file)
@@ -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)