summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/values.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/values.cc b/base/values.cc
index bf7998d..d97da24 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -628,7 +628,7 @@ void ListValue::Append(Value* in_value) {
bool ListValue::Insert(size_t index, Value* in_value) {
DCHECK(in_value);
- if (index < 0 || index > list_.size())
+ if (index > list_.size())
return false;
list_.insert(list_.begin() + index, in_value);