[Libreoffice-commits] online.git: wsd/ProofKey.cpp

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 22 12:03:56 UTC 2019


 wsd/ProofKey.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c39645bed5c30d60d726571a2741b31df62b9ca2
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Nov 22 13:58:33 2019 +0200
Commit:     Mike Kaganski <mike.kaganski at 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.kaganski at collabora.com>
    Tested-by: Mike Kaganski <mike.kaganski at 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


More information about the Libreoffice-commits mailing list