wsd/ProofKey.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c39645bed5c30d60d726571a2741b31df62b9ca2 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Nov 22 13:58:33 2019 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Nov 22 13:03:38 2019 +0100 Fix comparison of integer expressions of different signedness Change-Id: Idcbaf83cb5f953cb725e5b84c27bc00b2fc267d6 Reviewed-on: https://gerrit.libreoffice.org/83475 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/wsd/ProofKey.cpp b/wsd/ProofKey.cpp index d4587dc70..a1f78b111 100644 --- a/wsd/ProofKey.cpp +++ b/wsd/ProofKey.cpp @@ -155,8 +155,8 @@ std::string Proof::GetProof(const std::string& access_token, const std::string& { std::string decoded_access_token; Poco::URI::decode(access_token, decoded_access_token); - assert(decoded_access_token.size() <= std::numeric_limits<int32_t>::max() - && uri.size() <= std::numeric_limits<int32_t>::max()); + assert(decoded_access_token.size() <= static_cast<size_t>(std::numeric_limits<int32_t>::max())); + assert(uri.size() <= static_cast<size_t>(std::numeric_limits<int32_t>::max())); const size_t size = 4 + decoded_access_token.size() + 4 + uri.size() + 4 + 8; Poco::Buffer<char> buffer(size); // allocate enough size buffer.resize(0); // start from empty buffer _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits