stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r629212 - /stdcxx/trunk/include/sstream.cc
Date Tue, 19 Feb 2008 20:05:46 GMT
Author: vitek
Date: Tue Feb 19 12:05:45 2008
New Revision: 629212

URL: http://svn.apache.org/viewvc?rev=629212&view=rev
Log:

2008-02-19  Travis Vitek  <vitek@roguewave.com>

	STDCXX-602
	* include/sstream.cc (str): Fix compile error and signed/unsigned
	warning introduced in previous change.


Modified:
    stdcxx/trunk/include/sstream.cc

Modified: stdcxx/trunk/include/sstream.cc
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/sstream.cc?rev=629212&r1=629211&r2=629212&view=diff
==============================================================================
--- stdcxx/trunk/include/sstream.cc (original)
+++ stdcxx/trunk/include/sstream.cc Tue Feb 19 12:05:45 2008
@@ -103,10 +103,10 @@
             _RWSTD_STREAMSIZE (  (_RWSTD_NEW_CAPACITY_RATIO << 10)
                                / _RWSTD_RATIO_DIVIDER);
 
-        const _RWSTD_STREAMSIZE __cap =
-            this->_C_buffsize ?
-              (this->_C_buffsize >> 10) * __ratio
-            + (((this->_C_buffsize & 0x3ff) * __ratio) >> 10)
+        const _RWSTD_SIZE_T __cap =
+            this->_C_bufsize ?
+              (this->_C_bufsize >> 10) * __ratio
+            + (((this->_C_bufsize & 0x3ff) * __ratio) >> 10)
             : _RWSTD_MINIMUM_STRINGBUF_CAPACITY;
 
         __bufsize = __cap < __bufsize ? __bufsize : __cap;



Mime
View raw message