mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fix missing return statement in lambda
This commit is contained in:
parent
d2f2108fc5
commit
4abf5a5332
2
peglib.h
2
peglib.h
@ -3138,6 +3138,8 @@ private:
|
|||||||
case Loop::Type::oom: return oom(ope);
|
case Loop::Type::oom: return oom(ope);
|
||||||
case Loop::Type::rep: // Regex-like repetition
|
case Loop::Type::rep: // Regex-like repetition
|
||||||
return rep(ope, loop.range.first, loop.range.second);
|
return rep(ope, loop.range.first, loop.range.second);
|
||||||
|
default:
|
||||||
|
throw std::runtime_error("Unhandled enum constant");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user