File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,6 @@ class basic_json_parser : public ser_context
382382 more_ = false ;
383383 return ;
384384 }
385- --level_;
386385 state_ = pop_state ();
387386 if (state_ == parse_state::object)
388387 {
@@ -412,10 +411,11 @@ class basic_json_parser : public ser_context
412411 state_ = parse_state::expect_comma_or_end;
413412 }
414413 more_ = !cursor_mode_;
415- if (level_ < = mark_level_)
414+ if (level_ = = mark_level_)
416415 {
417416 more_ = false ;
418417 }
418+ --level_;
419419 }
420420
421421 void begin_array (basic_json_visitor<char_type>& visitor, std::error_code& ec)
@@ -446,7 +446,6 @@ class basic_json_parser : public ser_context
446446 more_ = false ;
447447 return ;
448448 }
449- --level_;
450449 state_ = pop_state ();
451450 if (state_ == parse_state::array)
452451 {
@@ -476,10 +475,11 @@ class basic_json_parser : public ser_context
476475 }
477476
478477 more_ = !cursor_mode_;
479- if (level_ < = mark_level_)
478+ if (level_ = = mark_level_)
480479 {
481480 more_ = false ;
482481 }
482+ --level_;
483483 }
484484
485485 void reinitialize ()
You can’t perform that action at this time.
0 commit comments