mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
fixed off-by-one error
This commit is contained in:
@ -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
|
|||||||
++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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user