summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-10-27 16:48:16 -0400
committerEliot Horowitz <eliot@10gen.com>2010-10-27 16:48:16 -0400
commit8a50d05676e65343e4cb2cb43d1fdc3d5aee7751 (patch)
treeaff0378e6e57f06841753ab4454829d21a03a3ef
parent816ec3eeece9c62fbe4d372470638a7ba76b9392 (diff)
downloadmongo-8a50d05676e65343e4cb2cb43d1fdc3d5aee7751.tar.gz
make inc6 a little cleaner
-rw-r--r--dbtests/updatetests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbtests/updatetests.cpp b/dbtests/updatetests.cpp
index a2c2dea6866..9b59799a473 100644
--- a/dbtests/updatetests.cpp
+++ b/dbtests/updatetests.cpp
@@ -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 ) ) );