mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-25 13:50:05 +00:00
fix: skip the last zero in the file
This commit is contained in:
parent
9132abc5c4
commit
003bc16c1b
@ -125,6 +125,7 @@ parse_integer(location& loc)
|
||||
const auto second = std::next(first);
|
||||
if(second == loc.end()) // the token is just zero.
|
||||
{
|
||||
loc.advance();
|
||||
return ok(std::make_pair(0, region(loc, first, second)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user