fix: remove length increment on location printing
This commit is contained in:
parent
1192e86c23
commit
1190f09e3a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user