Permalink
Browse files

make inc6 a little cleaner

  • Loading branch information...
1 parent 816ec3e commit 8a50d05676e65343e4cb2cb43d1fdc3d5aee7751 @erh erh committed Oct 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbtests/updatetests.cpp
View
@@ -753,8 +753,8 @@ namespace UpdateTests {
client().insert( ns() , BSON( "x" << 5 ) );
ASSERT( findOne()["x"].type() == NumberInt );
long long start = 5;
- long long max = 1024LL * 1024LL * 1024LL * 16LL;
- ASSERT( max > numeric_limits<int>::max() );
+ long long max = numeric_limits<int>::max();
+ max *= 32;
while ( start < max ){
update( BSON( "$inc" << BSON( "x" << 500000 ) ) );

0 comments on commit 8a50d05

Please sign in to comment.