fix: remove length increment on location printing

This commit is contained in:
TopchetoEU 2022-10-11 13:10:12 +03:00
parent 1192e86c23
commit 1190f09e3a

View File

@ -22,7 +22,7 @@ std::string location_t::to_string() const {
written_anything = true;
}
if (length != -1u) {
if (written_anything) res << '(' << length + 1 << ')';
if (written_anything) res << '(' << length << ')';
written_anything = true;
}