mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed build error
This commit is contained in:
parent
b330799cd6
commit
57f866c6ca
3
peglib.h
3
peglib.h
@ -3069,7 +3069,8 @@ struct AstOptimizer
|
|||||||
if (opt && original->nodes.size() == 1) {
|
if (opt && original->nodes.size() == 1) {
|
||||||
auto child = optimize(original->nodes[0], parent);
|
auto child = optimize(original->nodes[0], parent);
|
||||||
return std::make_shared<T>(
|
return std::make_shared<T>(
|
||||||
*child, original->name.c_str(), original->choice_count, original->choice);
|
*child, original->name.c_str(), original->choice_count,
|
||||||
|
original->position, original->length, original->choice);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ast = std::make_shared<T>(*original);
|
auto ast = std::make_shared<T>(*original);
|
||||||
|
Loading…
Reference in New Issue
Block a user