You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by an...@apache.org on 2018/01/25 21:37:14 UTC

mesos git commit: Fixed a conversion warning.

Repository: mesos
Updated Branches:
  refs/heads/master abd1751aa -> 487bf167b


Fixed a conversion warning.

A "possible loss of data" warning was triggered with MSVC since
`process.run(int)` implicitly converted an unsigned `size_t` to a signed
`int`. This patch fixes the type of the passed values.

Review: https://reviews.apache.org/r/65326


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/487bf167
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/487bf167
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/487bf167

Branch: refs/heads/master
Commit: 487bf167bbbc913c248736f25d22f2efc8a22aaa
Parents: abd1751
Author: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Authored: Wed Jan 24 13:45:41 2018 -0800
Committer: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Committed: Thu Jan 25 13:34:51 2018 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/src/tests/benchmarks.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/487bf167/3rdparty/libprocess/src/tests/benchmarks.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/benchmarks.cpp b/3rdparty/libprocess/src/tests/benchmarks.cpp
index 10fd492..48b5f5c 100644
--- a/3rdparty/libprocess/src/tests/benchmarks.cpp
+++ b/3rdparty/libprocess/src/tests/benchmarks.cpp
@@ -674,10 +674,10 @@ private:
 // Measures performance of message passing in ProtobufProcess.
 TEST(ProcessTest, Process_BENCHMARK_ProtobufInstallHandler)
 {
-  const size_t submessages[] = {0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000};
+  const int submessages[] = {0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000};
 
   ProtobufInstallHandlerBenchmarkProcess process;
-  foreach (size_t num_submessages, submessages) {
+  foreach (int num_submessages, submessages) {
     process.run(num_submessages);
   }
 }