summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2011-08-31 13:12:24 -0400
committerMathias Stearn <mathias@10gen.com>2011-08-31 13:12:24 -0400
commit56122624cfaa36058c13b8174c94265ca74c3aa7 (patch)
tree7b324cf2c099058fd75afc4c6f3e62d4fa06d179
parentcba5d568e9e48398a0fa34aefb4904be464e6570 (diff)
downloadmongo-56122624cfaa36058c13b8174c94265ca74c3aa7.tar.gz
compile
-rw-r--r--db/key.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/key.cpp b/db/key.cpp
index eb17f4a3564..4325800e146 100644
--- a/db/key.cpp
+++ b/db/key.cpp
@@ -305,9 +305,9 @@ namespace mongo {
{
long long n = e._numberLong();
long long m = 2LL << 52;
- {
+ DEV {
long long d = m-1;
- dassert( ((long long) ((double) -d)) == -d );
+ assert( ((long long) ((double) -d)) == -d );
}
if( n >= m || n <= -m ) {
// can't represent exactly as a double