[Libreoffice-commits] online.git: common/Util.hpp

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 5 21:53:28 UTC 2019


 common/Util.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 79637655f68dedb6d97042daf82a880673f70c01
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Sep 5 22:51:25 2019 +0100
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Thu Sep 5 22:53:09 2019 +0100

    Avoid PRIx64 format - we are 64bit only, so lx will do.
    
    Fixes RHEL6 compilation problems around inttypes inclusion / definition.
    
    Change-Id: I4f4647c7954c32d90dad94a43c630af24d551d78

diff --git a/common/Util.hpp b/common/Util.hpp
index 52b960c82..c1a5141db 100644
--- a/common/Util.hpp
+++ b/common/Util.hpp
@@ -761,7 +761,7 @@ int main(int argc, char**argv)
     inline void vectorAppendHex(std::vector<char> &vector, uint64_t number)
     {
         char output[32];
-        sprintf(output, "%" PRIx64, number);
+        sprintf(output, "%lx", number);
         vectorAppend(vector, output);
     }
 


More information about the Libreoffice-commits mailing list