0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

32-bit fix

This commit is contained in:
Eliot Horowitz 2010-04-11 22:29:34 -04:00
parent ebf2ab9607
commit a1f1b3e9ae

View File

@ -712,13 +712,13 @@ namespace UpdateTests {
class inc5 : public SingleTest {
virtual BSONObj initial(){
return BSON( "_id" << 1 << "x" << (long long)537142123123 );
return BSON( "_id" << 1 << "x" << 537142123123LL );
}
virtual BSONObj mod(){
return BSON( "$inc" << BSON( "x" << (double)2.0 ) );
return BSON( "$inc" << BSON( "x" << 2.0 ) );
}
virtual BSONObj after(){
return BSON( "_id" << 1 << "x" << (long long)537142123125 );
return BSON( "_id" << 1 << "x" << 537142123125LL );
}
virtual const char * ns(){
return "unittests.inc2";