Skip to content

Commit 7b3683c

Browse files
committed
apply fix to old Reader
1 parent 5849903 commit 7b3683c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib_json/json_reader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ bool Reader::readValue() {
200200
}
201201
break;
202202
case tokenArraySeparator:
203+
case tokenObjectEnd:
204+
case tokenArrayEnd:
203205
if (features_.allowDroppedNullPlaceholders_) {
204206
// "Un-read" the current token and mark the current value as a null
205207
// token.
@@ -209,8 +211,7 @@ bool Reader::readValue() {
209211
currentValue().setOffsetStart(current_ - begin_ - 1);
210212
currentValue().setOffsetLimit(current_ - begin_);
211213
break;
212-
}
213-
// Else, fall through...
214+
} // Else, fall through...
214215
default:
215216
currentValue().setOffsetStart(token.start_ - begin_);
216217
currentValue().setOffsetLimit(token.end_ - begin_);

0 commit comments

Comments
 (0)