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:
parent
f89264047c
commit
a7362d52ac
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue