Use portable format conversion specifier for uint64_t

Avoids a warning when compiling for iOS: format specifies type
'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned
long long').

Change-Id: I8b5205dd0c3a8ae2f531f1647b3e3bac27ea6065
Reviewed-on: https://gerrit.libreoffice.org/78985
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
Tor Lillqvist 2019-09-16 14:45:38 +03:00
parent f89264047c
commit a7362d52ac

View file

@ -12,6 +12,7 @@
#include <cassert>
#include <cerrno>
#include <cinttypes>
#include <cstddef>
#include <cstring>
#include <atomic>
@ -761,7 +762,7 @@ int main(int argc, char**argv)
inline void vectorAppendHex(std::vector<char> &vector, uint64_t number)
{
char output[32];
sprintf(output, "%lx", number);
sprintf(output, "%" PRIx64, number);
vectorAppend(vector, output);
}