diff options
author | Aaron <aaron@10gen.com> | 2012-10-07 20:49:14 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2012-10-10 11:22:25 -0700 |
commit | 0235bac4b8469e26204e869d52a7fbdc51ae35a4 (patch) | |
tree | 75aababe84497e3e54f1280003b10ca40b43c2be | |
parent | e1085e542dd4ed1cb7f304e6095c63562f16d65b (diff) | |
download | mongo-0235bac4b8469e26204e869d52a7fbdc51ae35a4.tar.gz |
SERVER-7273 Use static_cast in unit test.
-rw-r--r-- | src/mongo/dbtests/documenttests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/documenttests.cpp b/src/mongo/dbtests/documenttests.cpp index e9359dba662..0f84c8f7773 100644 --- a/src/mongo/dbtests/documenttests.cpp +++ b/src/mongo/dbtests/documenttests.cpp @@ -807,7 +807,7 @@ namespace DocumentTests { // A long that cannot be exactly represented as a double. return Value::createDouble( 0x8fffffffffffffffLL ); } - double expected() { return (double)0x8fffffffffffffffLL; } + double expected() { return static_cast<double>( 0x8fffffffffffffffLL ); } }; /** Coerce double to double. */ |