Fixed vector_delimited excluding delimiter

Change-Id: I3e758d44b9845d6df91332bb609b4b7ad88659ac
This commit is contained in:
Wouter van Oortmerssen 2019-03-18 12:07:36 -07:00
parent 11198f10f5
commit fd51fadaac
1 changed files with 3 additions and 3 deletions

View File

@ -360,15 +360,15 @@ struct ToStringVisitor : public IterationVisitor {
void Unknown(const uint8_t *) { s += "(?)"; }
void StartVector() {
s += "[";
s += d;
if (vector_delimited) {
s += d;
indent_level++;
append_indent();
}
}
void EndVector() {
s += d;
if (vector_delimited) {
s += d;
indent_level--;
append_indent();
}
@ -378,8 +378,8 @@ struct ToStringVisitor : public IterationVisitor {
const TypeTable * /*type_table*/, const uint8_t * /*val*/) {
if (i) {
s += ",";
s += d;
if (vector_delimited) {
s += d;
append_indent();
}
}