mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
fix: skip the last zero in the file
This commit is contained in:
@@ -125,6 +125,7 @@ parse_integer(location& loc)
|
|||||||
const auto second = std::next(first);
|
const auto second = std::next(first);
|
||||||
if(second == loc.end()) // the token is just zero.
|
if(second == loc.end()) // the token is just zero.
|
||||||
{
|
{
|
||||||
|
loc.advance();
|
||||||
return ok(std::make_pair(0, region(loc, first, second)));
|
return ok(std::make_pair(0, region(loc, first, second)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user