Skip to content

Commit 35d2e17

Browse files
dpbainesvaughnbetz
authored andcommitted
Remove index < 0 check from vtr_vector_map.h
1 parent ae5584f commit 35d2e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libvtrutil/src/vtr_vector_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class vector_map {
6262
//Indexing
6363
const_reference operator[](const K n) const {
6464
size_t index = size_t(n);
65-
VTR_ASSERT_SAFE_MSG(index >= 0 && index < vec_.size(), "Out-of-range index");
65+
VTR_ASSERT_SAFE_MSG(index < vec_.size(), "Out-of-range index");
6666
return vec_[index];
6767
}
6868

0 commit comments

Comments
 (0)