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

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