mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
SERVER-357 specify boost namespace explicitly
This commit is contained in:
parent
1e85d9cacd
commit
d44586f265
@ -160,9 +160,9 @@ namespace mongo {
|
|||||||
|
|
||||||
// NOTE No validation of passed in object
|
// NOTE No validation of passed in object
|
||||||
long long toNumberLongUnsafe( JSObject *o ) {
|
long long toNumberLongUnsafe( JSObject *o ) {
|
||||||
uint64_t val =
|
boost::uint64_t val =
|
||||||
( (uint64_t)( getNumber( o , "top" ) ) << 32 ) +
|
( (boost::uint64_t)( getNumber( o , "top" ) ) << 32 ) +
|
||||||
( uint32_t)( getNumber( o , "bottom" ) );
|
( boost::uint32_t)( getNumber( o , "bottom" ) );
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -565,7 +565,7 @@ namespace mongo {
|
|||||||
return OBJECT_TO_JSVAL( o );
|
return OBJECT_TO_JSVAL( o );
|
||||||
}
|
}
|
||||||
case NumberLong: {
|
case NumberLong: {
|
||||||
uint64_t val = (uint64_t)e.numberLong();
|
boost::uint64_t val = (boost::uint64_t)e.numberLong();
|
||||||
JSObject * o = JS_NewObject( _context , &numberlong_class , 0 , 0 );
|
JSObject * o = JS_NewObject( _context , &numberlong_class , 0 , 0 );
|
||||||
// using 2 doubles here instead of a single double because certain double
|
// using 2 doubles here instead of a single double because certain double
|
||||||
// bit patterns represent undefined values and sm might trash them
|
// bit patterns represent undefined values and sm might trash them
|
||||||
|
Loading…
Reference in New Issue
Block a user