mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
32bit compile
This commit is contained in:
parent
d3f132a13e
commit
59eb3a8b0c
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user