0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

windows compile MINOR

This commit is contained in:
eliot 2009-05-12 15:49:40 -04:00
parent 8e36f60caa
commit eb537e9f3d
2 changed files with 5 additions and 3 deletions

View File

@ -574,7 +574,7 @@ int main(int argc, char* argv[], char *envp[] )
assert(opIdMem > 0);
}
else if ( s == "--deDupMem" ) {
long x = strtoll( argv[ ++i ], 0, 10 );
long x = strtol( argv[ ++i ], 0, 10 );
uassert("bad arg", x > 0);
IdSet::maxSize_ = x;
assert(IdSet::maxSize_ > 0);

View File

@ -1,5 +1,6 @@
// engine_spidermonkey.cpp
#include "stdafx.h"
#include "engine_spidermonkey.h"
#include "../client/dbclient.h"
@ -682,8 +683,9 @@ namespace mongo {
jsval rval;
int nargs = args.nFields();
jsval smargs[nargs];
auto_ptr<jsval> smargsPtr( new jsval[nargs] );
jsval* smargs = smargsPtr.get();
BSONObjIterator it( args );
for ( int i=0; i<nargs; i++ )
smargs[i] = _convertor->toval( it.next() );