added [int] to BSONObj

This commit is contained in:
Eliot Horowitz
2009-05-20 16:54:11 -04:00
parent 0bcbdbc3ec
commit e11f79c1f9
2 changed files with 8 additions and 1 deletions

View File

@@ -288,7 +288,7 @@ namespace mongo {
assert( array );
for ( int i=0; i<n; i++ ){
jsval v = toval( embed[BSONObjBuilder::numStr( i ).c_str()] );
jsval v = toval( embed[i] );
assert( JS_SetElement( _context , array , i , &v ) );
}