0
0
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:
Eliot Horowitz 2009-01-27 09:54:20 -05:00
parent f6f9412d00
commit 76deb4703a

View File

@ -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();