From 6d21546c9da76c317a955a5ecd3d5066d14d17eb Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 12 Apr 2010 17:47:58 -0700 Subject: [PATCH] make casting types consistent --- scripting/engine_spidermonkey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp index 6267a3fa545..5d66f15555d 100644 --- a/scripting/engine_spidermonkey.cpp +++ b/scripting/engine_spidermonkey.cpp @@ -219,7 +219,7 @@ namespace mongo { ( (boost::uint64_t)(boost::uint32_t)getNumber( o , "top" ) << 32 ) + ( boost::uint32_t)( getNumber( o , "bottom" ) ); } else { - val = (boost::uint64_t) getNumber( o, "floatApprox" ); + val = (boost::uint64_t)(boost::int64_t) getNumber( o, "floatApprox" ); } return val; }