summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2015-11-10 18:03:02 -0500
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2015-11-10 18:03:02 -0500
commit37a6559c83f602f14f079771c911b19188f23654 (patch)
tree269f2457c7911f1a80fc7104232a270dab56c6fd /src
parent2ba6eb9c4bfe18001ad903f47fc99f3126489781 (diff)
downloadmongo-37a6559c83f602f14f079771c911b19188f23654.tar.gz
SERVER-20869 Fix compile by doing .as<long> instead of .as<int64_t>.
Diffstat (limited to 'src')
-rw-r--r--src/mongo/tools/mongobridge_options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/tools/mongobridge_options.cpp b/src/mongo/tools/mongobridge_options.cpp
index 005247ee44a..7eda36538be 100644
--- a/src/mongo/tools/mongobridge_options.cpp
+++ b/src/mongo/tools/mongobridge_options.cpp
@@ -83,7 +83,7 @@ Status storeMongoBridgeOptions(const moe::Environment& params,
std::unique_ptr<SecureRandom> seedSource{SecureRandom::create()};
mongoBridgeGlobalParams.seed = seedSource->nextInt64();
} else {
- mongoBridgeGlobalParams.seed = params["seed"].as<int64_t>();
+ mongoBridgeGlobalParams.seed = static_cast<int64_t>(params["seed"].as<long>());
}
return Status::OK();