summaryrefslogtreecommitdiff
path: root/src/mongo/db/jsobjmanipulator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/jsobjmanipulator.h')
-rw-r--r--src/mongo/db/jsobjmanipulator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/jsobjmanipulator.h b/src/mongo/db/jsobjmanipulator.h
index 880fde8b409..05666409e62 100644
--- a/src/mongo/db/jsobjmanipulator.h
+++ b/src/mongo/db/jsobjmanipulator.h
@@ -30,7 +30,7 @@ namespace mongo {
public:
BSONElementManipulator( const BSONElement &element ) :
_element( element ) {
- assert( !_element.eoo() );
+ verify( !_element.eoo() );
}
/** Replace a Timestamp type with a Date type initialized to
OpTime::now().asDate()
@@ -43,16 +43,16 @@ namespace mongo {
void setNumber(double d) {
if ( _element.type() == NumberDouble ) *reinterpret_cast< double * >( value() ) = d;
else if ( _element.type() == NumberInt ) *reinterpret_cast< int * >( value() ) = (int) d;
- else assert(0);
+ else verify(0);
}
void SetNumber(double d);
void setLong(long long n) {
- assert( _element.type() == NumberLong );
+ verify( _element.type() == NumberLong );
*reinterpret_cast< long long * >( value() ) = n;
}
void SetLong(long long n);
void setInt(int n) {
- assert( _element.type() == NumberInt );
+ verify( _element.type() == NumberInt );
*reinterpret_cast< int * >( value() ) = n;
}
void SetInt(int n);