summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();