stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r553955 - /incubator/stdcxx/trunk/include/sstream.cc
Date Fri, 06 Jul 2007 17:05:45 GMT
Author: faridz
Date: Fri Jul  6 10:05:45 2007
New Revision: 553955

URL: http://svn.apache.org/viewvc?view=rev&rev=553955
Log:
2007-07-06 Farid Zaripov <Farid_Zaripov@epam.com>

	* sstream.cc (xsputn): __off declared as _RWSTD_PTRDIFF_T (was int).

Modified:
    incubator/stdcxx/trunk/include/sstream.cc

Modified: incubator/stdcxx/trunk/include/sstream.cc
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/sstream.cc?view=diff&rev=553955&r1=553954&r2=553955
==============================================================================
--- incubator/stdcxx/trunk/include/sstream.cc (original)
+++ incubator/stdcxx/trunk/include/sstream.cc Fri Jul  6 10:05:45 2007
@@ -185,20 +185,20 @@
         const _RWSTD_SIZE_T __bufsize =
             __n + (this->pptr () - this->pbase ());
 
-        int off = -1;
+        _RWSTD_PTRDIFF_T __off = -1;
 
         if (this->pbase () <= __s && this->pptr () > __s) {
             // __s is part of buffer
             _RWSTD_ASSERT (this->epptr () >= __s + __n);
-            off = this->pbase () - __s;
+            __off = this->pbase () - __s;
         }
 
         // grow the buffer if necessary to accommodate the whole
         // string plus the contents of the buffer up to pptr()
         str (this->_C_buffer, __bufsize);
 
-        if (0 <= off)
-            __s = this->pbase () + off;
+        if (0 <= __off)
+            __s = this->pbase () + __off;
 
         _RWSTD_ASSERT (__n <= this->epptr () - this->pptr ());
     }



Mime
View raw message