Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

really fix 32-bit update test

  • Loading branch information...
commit 2998c9f313af005edec0c115bdc1ce8641b916ba 1 parent 6ee5d0c
@erh erh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbtests/updatetests.cpp
View
4 dbtests/updatetests.cpp
@@ -753,9 +753,9 @@ namespace UpdateTests {
client().insert( ns() , BSON( "x" << 5 ) );
ASSERT( findOne()["x"].type() == NumberInt );
long long start = 5;
- long long max = 1024L * 1024L * 1024L * 16;
+ long long max = 1024LL * 1024LL * 1024LL * 16LL;
ASSERT( max > numeric_limits<int>::max() );
- cout << "E: " << max << endl;
+
while ( start < max ){
update( BSON( "$inc" << BSON( "x" << 500000 ) ) );
start += 500000;
Please sign in to comment.
Something went wrong with that request. Please try again.