diff options
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/basic_string.tcc | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index afbb234..26cad18 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2001-12-07 Paolo Carlini <pcarlini@unitus.it> + + * include/bits/basic_string.tcc (_M_mutate): Fix typo + in the previous check in. + 2001-12-06 Paolo Carlini <pcarlini@unitus.it> Loren J. Rittle <ljrittle@acm.org> diff --git a/libstdc++-v3/include/bits/basic_string.tcc b/libstdc++-v3/include/bits/basic_string.tcc index cbaf883..8081304 100644 --- a/libstdc++-v3/include/bits/basic_string.tcc +++ b/libstdc++-v3/include/bits/basic_string.tcc @@ -290,9 +290,9 @@ namespace std 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. |