mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
fix some compiler warnings
This commit is contained in:
parent
f6f9412d00
commit
76deb4703a
@ -189,7 +189,7 @@ void v8ToMongoElement( BSONObjBuilder & b , v8::Handle<v8::String> name , const
|
||||
}
|
||||
|
||||
if ( value->IsDate() ){
|
||||
b.appendDate( sname.c_str() , v8::Date::Cast( *value )->NumberValue() );
|
||||
b.appendDate( sname.c_str() , (unsigned long long )(v8::Date::Cast( *value )->NumberValue()) );
|
||||
return;
|
||||
}
|
||||
|
||||
@ -290,7 +290,7 @@ Handle<Value> mongoFind(const Arguments& args){
|
||||
if ( haveFields )
|
||||
fields = v8ToMongo( args[2]->ToObject() );
|
||||
|
||||
auto_ptr<mongo::DBClientCursor> cursor = conn->query( ns, q , args[3]->ToNumber()->Value() , args[4]->ToNumber()->Value() , haveFields ? &fields : 0 );
|
||||
auto_ptr<mongo::DBClientCursor> cursor = conn->query( ns, q , (int)(args[3]->ToNumber()->Value()) , (int)(args[4]->ToNumber()->Value()) , haveFields ? &fields : 0 );
|
||||
|
||||
Local<v8::Object> mongo = args.This();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user