You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2017/07/24 23:36:27 UTC

mesos git commit: Windows: Fixed rvalue cast bug.

Repository: mesos
Updated Branches:
  refs/heads/master 9a45267c5 -> 803d18b72


Windows: Fixed rvalue cast bug.

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


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

Branch: refs/heads/master
Commit: 803d18b72bd9e0ed2b7adaa16b581c4552e5e2bd
Parents: 9a45267
Author: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Authored: Mon Jul 24 16:30:10 2017 -0700
Committer: Michael Park <mp...@apache.org>
Committed: Mon Jul 24 16:30:10 2017 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/os/windows/shell.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/803d18b7/3rdparty/stout/include/stout/os/windows/shell.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/os/windows/shell.hpp b/3rdparty/stout/include/stout/os/windows/shell.hpp
index c1dae0c..5c71183 100644
--- a/3rdparty/stout/include/stout/os/windows/shell.hpp
+++ b/3rdparty/stout/include/stout/os/windows/shell.hpp
@@ -349,16 +349,16 @@ inline int spawn(
   ::WaitForSingleObject(
       process_data.get().process_handle.get_handle(), INFINITE);
 
-  int status;
+  DWORD status;
   if (!::GetExitCodeProcess(
            process_data.get().process_handle.get_handle(),
-           &static_cast<DWORD>(status))) {
+           &status)) {
     LOG(WARNING) << "Failed to `GetExitCodeProcess`: " << command;
     return -1;
   }
 
   // Return the child exit code.
-  return status;
+  return static_cast<int>(status);
 }