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
This commit is contained in:
parent
65a07688cf
commit
cc89439188
@ -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>
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user