Repository: mesos Updated Branches: refs/heads/master 85d9d4ef2 -> 3f756c496
Fixed signed comparison warning in stout/protobuf.hpp. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/dd532ec4 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/dd532ec4 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/dd532ec4 Branch: refs/heads/master Commit: dd532ec466a11991f278897f60100293e5020fd9 Parents: 85d9d4e Author: Joseph Wu <[email protected]> Authored: Thu Feb 16 23:15:06 2017 -0800 Committer: Joseph Wu <[email protected]> Committed: Thu Feb 16 23:15:06 2017 -0800 ---------------------------------------------------------------------- 3rdparty/stout/include/stout/protobuf.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/dd532ec4/3rdparty/stout/include/stout/protobuf.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/stout/include/stout/protobuf.hpp b/3rdparty/stout/include/stout/protobuf.hpp index 34290c7..2735354 100644 --- a/3rdparty/stout/include/stout/protobuf.hpp +++ b/3rdparty/stout/include/stout/protobuf.hpp @@ -179,7 +179,7 @@ Try<T> deserialize(const std::string& value) // constructor. The maximum size of a proto2 message is 64 MB, so it is // unlikely that we will hit this limit, but since an arbitrary string can be // passed in, we include this check to be safe. - CHECK_LE(value.size(), std::numeric_limits<int>::max()); + CHECK_LE(value.size(), static_cast<size_t>(std::numeric_limits<int>::max())); google::protobuf::io::ArrayInputStream stream( value.data(), static_cast<int>(value.size())); @@ -285,7 +285,7 @@ struct Read // constructor. The maximum size of a proto2 message is 64 MB, so it is // unlikely that we will hit this limit, but since an arbitrary string can // be passed in, we include this check to be safe. - CHECK_LE(data.size(), std::numeric_limits<int>::max()); + CHECK_LE(data.size(), static_cast<size_t>(std::numeric_limits<int>::max())); T message; google::protobuf::io::ArrayInputStream stream( data.data(),
