diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2001-12-07 13:25:51 +0100 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2001-12-07 12:25:51 +0000 |
commit | cc8943918801ba7c3bf2cfcf3aef19a46c1c9f34 (patch) | |
tree | 897f43c47f1e4f72a060f5664b6ff98c98700f1e /libstdc++-v3 | |
parent | 65a07688cf999ddb07d1deb1dd8842e71602379c (diff) | |
download | gcc-cc8943918801ba7c3bf2cfcf3aef19a46c1c9f34.zip gcc-cc8943918801ba7c3bf2cfcf3aef19a46c1c9f34.tar.gz gcc-cc8943918801ba7c3bf2cfcf3aef19a46c1c9f34.tar.bz2 |
basic_string.tcc (_M_mutate): Fix typo in the previous check in.
2001-12-07 Paolo Carlini <pcarlini@unitus.it>
* include/bits/basic_string.tcc (_M_mutate): Fix typo
in the previous check in.
From-SVN: r47754
Diffstat (limited to 'libstdc++-v3')
-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. |