mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed warnings.
This commit is contained in:
parent
1038b71b12
commit
23737a716b
4
peglib.h
4
peglib.h
@ -617,7 +617,7 @@ public:
|
||||
ZeroOrMore(const std::shared_ptr<Ope>& ope) : ope_(ope) {}
|
||||
|
||||
size_t parse(const char* s, size_t n, SemanticValues& sv, Context& c, any& dt) const override {
|
||||
auto i = 0;
|
||||
size_t i = 0;
|
||||
while (n - i > 0) {
|
||||
const auto& rule = *ope_;
|
||||
auto len = rule.parse(s + i, n - i, sv, c, dt);
|
||||
@ -1922,7 +1922,7 @@ private:
|
||||
std::string r;
|
||||
r.reserve(n);
|
||||
|
||||
auto i = 0u;
|
||||
size_t i = 0;
|
||||
while (i < n) {
|
||||
auto ch = s[i];
|
||||
if (ch == '\\') {
|
||||
|
Loading…
Reference in New Issue
Block a user