summaryrefslogtreecommitdiff
path: root/src/hash_map.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-10-20 19:00:06 +0800
committerMaxime Coste <mawww@kakoune.org>2017-11-01 14:05:15 +0800
commit7c3bc48627c0bbb97cf4d1ffb8a3ee30a6beec9b (patch)
treeea5705d0063b407502fe1859e9d3552223a2db87 /src/hash_map.hh
parent60e32d73ffb0d98febffec78d4ed38b748fab465 (diff)
Fix ConstexprVector::resize
Diffstat (limited to 'src/hash_map.hh')
-rw-r--r--src/hash_map.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash_map.hh b/src/hash_map.hh
index 94d20498..e0f7a4e2 100644
--- a/src/hash_map.hh
+++ b/src/hash_map.hh
@@ -35,7 +35,7 @@ struct HashIndex
size_t new_size = 4;
while (new_size < min_size)
new_size *= 2;
- m_entries.resize(new_size, {});
+ m_entries.resize(new_size);
}
using ContainerType = Container<Entry, domain>;
@@ -44,7 +44,7 @@ struct HashIndex
{
kak_assert(new_size > m_entries.size());
ContainerType old_entries = std::move(m_entries);
- m_entries.resize(new_size, {});
+ m_entries.resize(new_size);
for (auto& entry : old_entries)
{
if (entry.index >= 0)