summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-10-07 20:49:14 -0700
committerAaron <aaron@10gen.com>2012-10-10 11:22:25 -0700
commit0235bac4b8469e26204e869d52a7fbdc51ae35a4 (patch)
tree75aababe84497e3e54f1280003b10ca40b43c2be
parente1085e542dd4ed1cb7f304e6095c63562f16d65b (diff)
downloadmongo-0235bac4b8469e26204e869d52a7fbdc51ae35a4.tar.gz
SERVER-7273 Use static_cast in unit test.
-rw-r--r--src/mongo/dbtests/documenttests.cpp2
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. */