Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hash_trie.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ namespace hamt {
// Calculates the raw storage size for a leaf type that
// contains size elements in the array
static constexpr auto storage_size(size_t size) {
return sizeof(leaf_node) + sizeof(T*[size-1]);
return sizeof(leaf_node) + sizeof(T)*(size-1);
}

// Creates a new leaf_node type with enough additional storage for
Expand Down