diff options
author | Tor Egge <tegge@vespa.ai> | 2024-04-23 13:07:56 +0200 |
---|---|---|
committer | Tor Egge <tegge@vespa.ai> | 2024-04-23 13:08:22 +0200 |
commit | ddb17242107bc912bee3a912ed5d788645853979 (patch) | |
tree | 9a3ae8df059779669cb6a0070960961b4b860064 /vespalib/src | |
parent | 5afca2668fec45bbb075fcc4e4630157d8ca7200 (diff) |
Fix format string in hamming benchmark.
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/tests/util/hamming/hamming_benchmark.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/util/hamming/hamming_benchmark.cpp b/vespalib/src/tests/util/hamming/hamming_benchmark.cpp index b6393dcd1b7..347c935f5b7 100644 --- a/vespalib/src/tests/util/hamming/hamming_benchmark.cpp +++ b/vespalib/src/tests/util/hamming/hamming_benchmark.cpp @@ -2,6 +2,7 @@ #include <vespa/vespalib/util/binary_hamming_distance.h> #include <vector> +#include <cinttypes> #include <cstdlib> #include <cstdint> #include <cstdio> @@ -35,6 +36,6 @@ int main(int argc, char* argv[]) { } } - printf("%lu vectors of %lu bits, repeated %lu times. Sum of distances = %lu\n", num_vectors, vector_length*8, num_reps, sum); + printf("%lu vectors of %lu bits, repeated %lu times. Sum of distances = %" PRIu64 "\n", num_vectors, vector_length*8, num_reps, sum); return 0; } |