aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/numerics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/numerics.cpp b/src/numerics.cpp
index 66ddc02..33ee5ab 100644
--- a/src/numerics.cpp
+++ b/src/numerics.cpp
@@ -48,8 +48,9 @@ Node::Node(Fraction val, index_t left, index_t right)
{
}
-NodeAllocator::NodeAllocator(word_t capacity) : vec{capacity}
+NodeAllocator::NodeAllocator(word_t capacity)
{
+ vec.reserve(capacity);
}
word_t NodeAllocator::alloc(Node n)