mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-10 02:07:35 +02:00
apply fix to old Reader
This commit is contained in:
parent
58499031a4
commit
7b3683ccd1
@ -200,6 +200,8 @@ bool Reader::readValue() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case tokenArraySeparator:
|
case tokenArraySeparator:
|
||||||
|
case tokenObjectEnd:
|
||||||
|
case tokenArrayEnd:
|
||||||
if (features_.allowDroppedNullPlaceholders_) {
|
if (features_.allowDroppedNullPlaceholders_) {
|
||||||
// "Un-read" the current token and mark the current value as a null
|
// "Un-read" the current token and mark the current value as a null
|
||||||
// token.
|
// token.
|
||||||
@ -209,8 +211,7 @@ bool Reader::readValue() {
|
|||||||
currentValue().setOffsetStart(current_ - begin_ - 1);
|
currentValue().setOffsetStart(current_ - begin_ - 1);
|
||||||
currentValue().setOffsetLimit(current_ - begin_);
|
currentValue().setOffsetLimit(current_ - begin_);
|
||||||
break;
|
break;
|
||||||
}
|
} // Else, fall through...
|
||||||
// Else, fall through...
|
|
||||||
default:
|
default:
|
||||||
currentValue().setOffsetStart(token.start_ - begin_);
|
currentValue().setOffsetStart(token.start_ - begin_);
|
||||||
currentValue().setOffsetLimit(token.end_ - begin_);
|
currentValue().setOffsetLimit(token.end_ - begin_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user