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 <[EMAIL PROTECTED]>
* 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 ()); }