From c846eedfebbacaca755db7dcbf45a0cb9fbdb320 Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Thu, 2 Mar 2017 12:10:43 +0000 Subject: [PATCH] Fix use of C-style cast. --- src/benchmark.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index 0638a160..712d4a39 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -564,7 +564,8 @@ size_t RunSpecifiedBenchmarks(BenchmarkReporter* console_reporter, output_opts &= ~ConsoleReporter::OO_Tabular; } default_console_reporter = internal::CreateReporter( - FLAGS_benchmark_format, (ConsoleReporter::OutputOptions)output_opts); + FLAGS_benchmark_format, + static_cast< ConsoleReporter::OutputOptions >(output_opts)); console_reporter = default_console_reporter.get(); } auto& Out = console_reporter->GetOutputStream();