diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index ac90786a0..42440d3bd 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -3491,7 +3491,7 @@ void PrettyUnitTestResultPrinter::OnTestIterationStart( const int32_t shard_index = GTEST_FLAG_GET(shard_index); ColoredPrintf(GTestColor::kYellow, "Note: This is test shard %d of %d.\n", static_cast(shard_index) + 1, - GTEST_FLAG_GET(total_shards)); + (int) GTEST_FLAG_GET(total_shards)); } if (GTEST_FLAG_GET(shuffle)) {