diff options
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc index a672433b..ae467075 100644 --- a/src/string.cc +++ b/src/string.cc @@ -6,7 +6,7 @@ namespace Kakoune { -namespace +namespace { // Avoid including all of <algorithm> just for this. constexpr auto max(auto lhs, auto rhs) { return lhs > rhs ? lhs : rhs;} @@ -69,7 +69,7 @@ void String::Data::reserve(size_t new_capacity) if (current_capacity != 0 and new_capacity <= current_capacity) return; - if (!is_long() and new_capacity <= Short::capacity) + if (!is_long() and new_capacity <= Short::capacity) return; kak_assert(new_capacity <= Long::max_capacity); |
