Update json_value.cpp
fix boundry to boundary.
This commit is contained in:
parent
1ee39a6752
commit
0707eefd55
@ -1401,7 +1401,7 @@ void Value::Comments::set(CommentPlacement slot, String comment) {
|
|||||||
if (!ptr_) {
|
if (!ptr_) {
|
||||||
ptr_ = std::unique_ptr<Array>(new Array());
|
ptr_ = std::unique_ptr<Array>(new Array());
|
||||||
}
|
}
|
||||||
// check comments array boundry.
|
// check comments array boundary.
|
||||||
if (slot < CommentPlacement::numberOfCommentPlacement) {
|
if (slot < CommentPlacement::numberOfCommentPlacement) {
|
||||||
(*ptr_)[slot] = std::move(comment);
|
(*ptr_)[slot] = std::move(comment);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user