summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/type.cpp b/type.cpp
index 17f78840..086ac863 100644
--- a/type.cpp
+++ b/type.cpp
@@ -2218,6 +2218,7 @@ TypeBuilder& TypeBuilder::AddPointerSuffix(BNPointerSuffix ps)
TypeBuilder& TypeBuilder::SetPointerSuffix(const std::set<BNPointerSuffix>& suffix)
{
std::vector<BNPointerSuffix> apiSuffix;
+ apiSuffix.reserve(suffix.size());
for (auto& s: suffix)
{
apiSuffix.push_back(s);