summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-01 03:47:53 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-01 03:47:53 -0400
commitb9702d2b7673a0c53567d89ed150f796a21e7397 (patch)
treeb7c68456fefc41b26c56d915836e421c1cf4b68d /scripting
parente722328b99c295eaef6e47eceb6bda0ca4747ea7 (diff)
downloadmongo-b9702d2b7673a0c53567d89ed150f796a21e7397.tar.gz
more v8 fixing
Diffstat (limited to 'scripting')
-rw-r--r--scripting/v8_wrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/v8_wrapper.cpp b/scripting/v8_wrapper.cpp
index c045c7f9947..0e71c9a4896 100644
--- a/scripting/v8_wrapper.cpp
+++ b/scripting/v8_wrapper.cpp
@@ -419,7 +419,7 @@ namespace mongo {
}
if ( value->IsDate() ){
- b.appendDate( sname , Date_t( (unsigned long long)(v8::Date::Cast( *value )->NumberValue())) );
+ b.appendDate( sname , Date_t( (unsigned long long)(v8::Date::Cast( *value )->NumberValue())) );
return;
}
@@ -435,8 +435,8 @@ namespace mongo {
switch( obj->GetInternalField( 0 )->ToInt32()->Value() ) { // NOTE Uint32's Value() gave me a linking error, so going with this instead
case Timestamp:
b.appendTimestamp( sname,
- Date_t( obj->Get( v8::String::New( "t" ) )->ToNumber()->Value() ),
- obj->Get( v8::String::New( "i" ) )->ToInt32()->Value() );
+ Date_t( (unsigned long long)(obj->Get( v8::String::New( "t" ) )->ToNumber()->Value() )),
+ obj->Get( v8::String::New( "i" ) )->ToInt32()->Value() );
return;
case MinKey:
b.appendMinKey( sname );