eliminate warnings with vc++

This commit is contained in:
Dwight
2009-05-14 09:59:50 -04:00
parent 5700a5040d
commit 6e15b2b50d
2 changed files with 3 additions and 3 deletions

View File

@@ -283,7 +283,7 @@ namespace mongo {
return OBJECT_TO_JSVAL( JS_GetFunctionObject( func ) );
}
case Date:
return OBJECT_TO_JSVAL( js_NewDateObjectMsec( _context , e.date() ) );
return OBJECT_TO_JSVAL( js_NewDateObjectMsec( _context , (jsdouble) e.date() ) );
default:
log() << "toval can't handle type: " << (int)(e.type()) << endl;