mirror of
https://github.com/nlohmann/json.git
synced 2026-10-09 16:07:14 +00:00
fixed off-by-one error
This commit is contained in:
1 parent
b0eb34394c
commit
2707733920
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -5757,10 +5757,9 @@ class basic_json
|
||||
++anchor;
|
||||
++array_index;
|
||||
|
||||
first = calculate_key();
|
||||
|
||||
if (array_index < container_size)
|
||||
{
|
||||
first = calculate_key();
|
||||
second = *anchor;
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -5757,10 +5757,9 @@ class basic_json
|
||||
++anchor;
|
||||
++array_index;
|
||||
|
||||
first = calculate_key();
|
||||
|
||||
if (array_index < container_size)
|
||||
{
|
||||
first = calculate_key();
|
||||
second = *anchor;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user