Permalink
Browse files

really fix 32-bit update test

  • Loading branch information...
1 parent 6ee5d0c commit 2998c9f313af005edec0c115bdc1ce8641b916ba @erh erh committed Oct 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 2998c9f

Please sign in to comment.