Commit 27077339 by Niels

fixed off-by-one error

parent b0eb3439
...@@ -5757,10 +5757,9 @@ class basic_json ...@@ -5757,10 +5757,9 @@ class basic_json
++anchor; ++anchor;
++array_index; ++array_index;
first = calculate_key();
if (array_index < container_size) if (array_index < container_size)
{ {
first = calculate_key();
second = *anchor; second = *anchor;
} }
......
...@@ -5757,10 +5757,9 @@ class basic_json ...@@ -5757,10 +5757,9 @@ class basic_json
++anchor; ++anchor;
++array_index; ++array_index;
first = calculate_key();
if (array_index < container_size) if (array_index < container_size)
{ {
first = calculate_key();
second = *anchor; second = *anchor;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment