fix(native/tests): correct printf format specifier for int64_t

Fix C++ printf format specifier for int64_t (milliseconds count):

- Change %ld to %lld for duration_cast<milliseconds>.count()

- Resolves compiler warnings on platforms where long != long long
This commit is contained in:
Jeremie Fraeys 2026-03-23 15:23:59 -04:00
parent 4730f82236
commit 93ecbf6c98
No known key found for this signature in database

View file

@ -248,8 +248,8 @@ int test_performance() {
auto create_time = duration_cast<milliseconds>(create_end - start);
auto hash_time = duration_cast<milliseconds>(hash_end - create_end);
printf(" Created %d files in %ld ms\n", num_files, create_time.count());
printf(" Hashed %d files in %ld ms\n", num_files, hash_time.count());
printf(" Created %d files in %lld ms\n", num_files, create_time.count());
printf(" Hashed %d files in %lld ms\n", num_files, hash_time.count());
printf(" Throughput: %.1f files/sec\n", num_files * 1000.0 / hash_time.count());
fh_free_string(hash);