summaryrefslogtreecommitdiffstats
path: root/src/parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.cpp')
-rw-r--r--src/parse.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parse.cpp b/src/parse.cpp
index ad1f687..f9cefc1 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -77,8 +77,7 @@ static inline void parse_reduce_10(std::string *lhs, rhs_t *rhs, std::string *ac
}
static inline void parse_reduce_11(std::string *lhs, unsigned char c1, unsigned char c2, __attribute__((unused)) grammar_t *grammar) {
- vars_t vars;
- vars.emplace_back();
+ vars_t vars(1);
for (unsigned int c = c1; c <= c2; c++)
grammar->add_rule({item_t(*lhs, {symbol_t::make_char(c)}), vars, std::string()});