mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-27 10:25:58 +02:00
fix failing object case
This commit is contained in:
parent
eed193e151
commit
c58e93b014
@ -1160,6 +1160,7 @@ bool OurReader::readValue() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case tokenArraySeparator:
|
case tokenArraySeparator:
|
||||||
|
case tokenObjectEnd:
|
||||||
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.
|
||||||
@ -1169,8 +1170,7 @@ bool OurReader::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