From 003bc16c1b97bb9d910ee3e1bc358d830d4650d5 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Mon, 14 Sep 2020 16:35:51 +0900 Subject: [PATCH] fix: skip the last zero in the file --- toml/parser.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/toml/parser.hpp b/toml/parser.hpp index 93b96ce..3969add 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -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))); }