diff options
Diffstat (limited to 'src/mongo/util/array.h')
-rw-r--r-- | src/mongo/util/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/array.h b/src/mongo/util/array.h index 12822252fd7..c765e8799b9 100644 --- a/src/mongo/util/array.h +++ b/src/mongo/util/array.h @@ -41,7 +41,7 @@ namespace mongo { } T& operator[]( int x ) { - assert( x >= 0 && x < _capacity ); + verify( x >= 0 && x < _capacity ); return _data[x]; } @@ -50,7 +50,7 @@ namespace mongo { } void push_back( const T& t ) { - assert( _size < _capacity ); + verify( _size < _capacity ); _data[_size++] = t; } |