Closed randomascii closed 2 years ago
%lld
is probably fine, but the pedantically correct thing is to use the PRId64
macro from <stdint.h>
or <cstdint>
.
https://en.cppreference.com/w/cpp/types/integer
Yep, good point.
Should be fixed by #80 (merged into main branch, I'll tag the 1.2.0 release binaries soon)
In DebugPrintEvents %7ld is used to print a pair of int64_t values. When compiling with Visual Studio that leads to printf mismatch warnings because on Windows (32-bit or 64-bit) long is a 32-bit value.
I believe that %7lld is a portable 64-bit format value. It definitely works for 32-bit and 64-bit Windows processes. This is the updated line of code that I used to fix the warnings: