[PATCH, committed] Fix typo

Paolo Carlini pcarlini@unitus.it
Fri Dec 7 04:41:00 GMT 2001


Hi,
I have committed under the obvious rule this fix for a typo present in last checkin that
Benjamin kindly did for me and Loren (http://gcc.gnu.org/ml/gcc-cvs/2001-12/msg00256.html)

Cheers,
Paolo.

////////////

Log message:
        2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

        * include/bits/basic_string.tcc (_M_mutate): Fix typo
        in the previous check in.

===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/basic_string.tcc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- gcc/libstdc++-v3/include/bits/basic_string.tcc      2001/12/07 09:07:55     1.12
+++ gcc/libstdc++-v3/include/bits/basic_string.tcc      2001/12/07 12:25:51     1.13
@@ -290,9 +290,9 @@
          const size_type __pagesize = 4096;
          const size_type __malloc_header_size = 4 * sizeof (void*);
          // The biggest string which fits in a memory page
-         const size_type __page_capacity = !(__pagesize - __malloc_header_size
-                                             - sizeof(_Rep) - sizeof(_CharT))
-                                             / sizeof(_CharT);
+         const size_type __page_capacity = (__pagesize - __malloc_header_size
+                                            - sizeof(_Rep) - sizeof(_CharT))
+                                            / sizeof(_CharT);
          _Rep* __r;
          if (__new_size > capacity() && __new_size > __page_capacity)
            // Growing exponentially.




More information about the Libstdc++ mailing list