Fix compile error on gcc
This commit is contained in:
parent
b2cb78166e
commit
076a27be4a
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,6 @@ namespace tree_sitter {
|
|||
result.insert({ symbol, following_terminals });
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ namespace tree_sitter {
|
|||
const ISymbol &non_terminal = pair.first;
|
||||
const set<ISymbol> &terminals = pair.second;
|
||||
for (const auto &terminal : terminals) {
|
||||
items_to_add.push_back(ParseItem(non_terminal, grammar.rule(non_terminal), 0, terminal));
|
||||
ParseItem next_item(non_terminal, grammar.rule(non_terminal), 0, terminal);
|
||||
items_to_add.push_back(next_item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue