From 19dcf68c1478137faf3f2467c9c9a198c3583db2 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Thu, 31 Jan 2019 21:47:16 -0500 Subject: SERVER-37645 fix macOS compile --- src/mongo/db/storage/bson_collection_catalog_entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo') diff --git a/src/mongo/db/storage/bson_collection_catalog_entry.cpp b/src/mongo/db/storage/bson_collection_catalog_entry.cpp index 631eea8237d..f37de6296b1 100644 --- a/src/mongo/db/storage/bson_collection_catalog_entry.cpp +++ b/src/mongo/db/storage/bson_collection_catalog_entry.cpp @@ -305,7 +305,7 @@ BSONObj BSONCollectionCatalogEntry::MetaData::toBSON() const { sub.append("backgroundSecondary", indexes[i].isBackgroundSecondaryBuild); sub.append("runTwoPhaseBuild", indexes[i].runTwoPhaseBuild); - sub.append("versionOfBuild", indexes[i].versionOfBuild); + sub.append("versionOfBuild", static_cast(indexes[i].versionOfBuild)); if (indexes[i].buildPhase) { sub.append("buildPhase", *indexes[i].buildPhase); } -- cgit v1.2.1