We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5def0 commit f10e33cCopy full SHA for f10e33c
include/array.h
@@ -85,9 +85,9 @@ class Array : public Field
85
{
86
// construct a shared pointer
87
auto ptr = std::shared_ptr<Field>(value.clone());
88
-
+
89
// should we overwrite an existing record?
90
- if (index <= _fields.size())
+ if (index >= _fields.size())
91
92
// append index
93
_fields.push_back(ptr);
0 commit comments