diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-07-07 18:12:53 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-07-07 19:38:06 -0400 |
commit | 556538105c0e39ee69a3595422cef7b473cce7a1 (patch) | |
tree | 44a1a51c8ae4e939d0e2343451983b0ac4ffe47b /scripting | |
parent | 5a09532d76d33a1d92f80cca06ec15cab3e83515 (diff) | |
download | mongo-556538105c0e39ee69a3595422cef7b473cce7a1.tar.gz |
fix js dates on 32-bit linux
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/sm_db.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/sm_db.cpp b/scripting/sm_db.cpp index c0e5a228f56..2a9169ba082 100644 --- a/scripting/sm_db.cpp +++ b/scripting/sm_db.cpp @@ -1200,8 +1200,8 @@ zzz #else if ( JS_InstanceOf( c->_context , o, &js_DateClass , 0 ) ) { jsdouble d = js_DateGetMsecSinceEpoch( c->_context , o ); - //TODO: make signed - b.appendDate( name , Date_t((unsigned long long)d) ); + long long d2 = (long long)d; + b.appendDate( name , Date_t((unsigned long long)d2) ); return true; } #endif |