Skip to content

Commit

Permalink
/*const*/ size_type _Target_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
achabense committed Jul 19, 2023
1 parent f39d5ee commit 1d7d1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stl/inc/xstring
Original file line number Diff line number Diff line change
Expand Up @@ -3992,7 +3992,7 @@ public:
return;
}

const size_type _Target_capacity = (_STD min)(_My_data._Mysize | _ALLOC_MASK, max_size());
size_type _Target_capacity = (_STD min)(_My_data._Mysize | _ALLOC_MASK, max_size());
if (_Target_capacity < _My_data._Myres) { // worth shrinking, do it
auto& _Al = _Getal();
const pointer _New_ptr = _Allocate_for_capacity(_Al, _Target_capacity); // throws
Expand Down

0 comments on commit 1d7d1f3

Please sign in to comment.