You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/09/24 01:53:11 UTC
[3/4] mesos git commit: Windows: Fixed warnings in `windows.hpp`.
Windows: Fixed warnings in `windows.hpp`.
The `_write` function takes an `unsigned int` type as the third
argument. The underlying type of `size_t` depends on the
platform architecture.
Review: https://reviews.apache.org/r/52193/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8dcd13d9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8dcd13d9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/8dcd13d9
Branch: refs/heads/master
Commit: 8dcd13d9f4a6023af574e15c1af42b0dd799e847
Parents: 439db8c
Author: Daniel Pravat <dp...@outlook.com>
Authored: Fri Sep 23 18:43:35 2016 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Fri Sep 23 18:43:35 2016 -0700
----------------------------------------------------------------------
3rdparty/stout/include/stout/windows.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/8dcd13d9/3rdparty/stout/include/stout/windows.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/windows.hpp b/3rdparty/stout/include/stout/windows.hpp
index 5cca853..69de096 100644
--- a/3rdparty/stout/include/stout/windows.hpp
+++ b/3rdparty/stout/include/stout/windows.hpp
@@ -330,9 +330,9 @@ decltype(strerror_s(buffer, length, errnum))
// to guarantee that the return type is identical to whatever is in the Windows
// implementation of the standard.
inline auto write(int fd, const void* buffer, size_t count) ->
-decltype(_write(fd, buffer, count))
+decltype(_write(fd, buffer, static_cast<unsigned int>(count)))
{
- return _write(fd, buffer, count);
+ return _write(fd, buffer, static_cast<unsigned int>(count));
}