You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2015/06/11 20:56:48 UTC

mesos git commit: Fixed a compiler warning in slave.cpp.

Repository: mesos
Updated Branches:
  refs/heads/master 02c0dbfb6 -> 8ca36dc79


Fixed a compiler warning in slave.cpp.


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

Branch: refs/heads/master
Commit: 8ca36dc79bf012dca540d16f61e2483c4a752c48
Parents: 02c0dbf
Author: Jie Yu <yu...@gmail.com>
Authored: Thu Jun 11 11:56:34 2015 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu Jun 11 11:56:34 2015 -0700

----------------------------------------------------------------------
 src/slave/slave.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/8ca36dc7/src/slave/slave.cpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index 5f00e6e..b523c2f 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -4160,7 +4160,7 @@ Future<ResourceUsage> Slave::usage()
         // NOTE: We add ResourceUsage::Executor to 'usage' the same
         // order as we push future to 'futures'. So the variables
         // 'future' and 'executor' below should be in sync.
-        CHECK_EQ(futures.size(), usage->executors_size());
+        CHECK_EQ(futures.size(), (size_t) usage->executors_size());
 
         size_t i = 0;
         foreach (const Future<ResourceStatistics>& future, futures) {