commit | dce2ebb40394237f75e577e1a5e2b4dfc20eb006 | [log] [tgz] |
---|---|---|
author | Jussi Knuuttila <jussi.knuuttila@gmail.com> | Sat Apr 30 14:55:19 2016 +0300 |
committer | Jussi Knuuttila <jussi.knuuttila@gmail.com> | Thu May 05 20:34:44 2016 +0300 |
tree | 5be5fd79c5a98bbd1bde2d828c71859ad865f495 | |
parent | 277e7aafe693e3617c0911bc5defbc0804326cb4 [diff] |
Fixed a warning caused by an implicit narrowing cast.
diff --git a/src/benchmark.cc b/src/benchmark.cc index 35b5e2d..3ee9c25 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc
@@ -660,7 +660,7 @@ thread.join(); } for (std::size_t ti = 0; ti < pool.size(); ++ti) { - pool[ti] = std::thread(&RunInThread, &b, iters, ti, &total); + pool[ti] = std::thread(&RunInThread, &b, iters, static_cast<int>(ti), &total); } } else { // Run directly in this thread