mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 21:35:29 +00:00
Fix warning about loss of precission
This commit is contained in:
parent
58b0669e55
commit
f764e9a85d
2
peglib.h
2
peglib.h
@ -1356,7 +1356,7 @@ private:
|
||||
inline size_t LiteralString::parse(const char* s, size_t n, SemanticValues& sv, Context& c, any& dt) const {
|
||||
c.trace("LiteralString", s, n, sv, dt);
|
||||
|
||||
auto i = 0u;
|
||||
size_t i = 0;
|
||||
for (; i < lit_.size(); i++) {
|
||||
if (i >= n || s[i] != lit_[i]) {
|
||||
c.set_error_pos(s);
|
||||
|
Loading…
Reference in New Issue
Block a user