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

32bit compile

This commit is contained in:
Eliot Horowitz 2010-03-01 17:19:05 -05:00
parent d3f132a13e
commit 59eb3a8b0c

View File

@ -1306,8 +1306,8 @@ namespace mongo {
}
void appendNumber( const string& fieldName , long long l ){
static long long maxInt = (int)pow( 2 , 30 );
static long long maxDouble = (long long)pow( 2 , 40 );
static long long maxInt = (int)pow( 2.0 , 30.0 );
static long long maxDouble = (long long)pow( 2.0 , 40.0 );
if ( l < maxInt )
append( fieldName.c_str() , (int)l );