Skip to content

Commit e9c172d

Browse files
committed
fix lint
1 parent 652ccad commit e9c172d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/src/gandiva/precompiled/string_ops_benchmark.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
// (it cancels out in the delta), mirroring per-call arena reuse.
3232

3333
#include <chrono>
34+
#include <cinttypes>
3435
#include <cstdint>
3536
#include <cstdio>
3637
#include <functional>
@@ -150,9 +151,8 @@ TEST(StringOpsBenchmark, Replace) {
150151
double old_ns = TimeNsPerCall(run_old, c.iters);
151152
double delta = old_ns > 0 ? (new_ns - old_ns) / old_ns * 100.0 : 0.0;
152153

153-
printf("%-28s %10lld %9lld %12.1f %12.1f %+8.1f%%\n", c.name.c_str(),
154-
static_cast<long long>(c.text_len), static_cast<long long>(matches), new_ns,
155-
old_ns, delta);
154+
printf("%-28s %10" PRId64 " %9" PRId64 " %12.1f %12.1f %+8.1f%%\n", c.name.c_str(),
155+
c.text_len, matches, new_ns, old_ns, delta);
156156
}
157157
printf("\n");
158158
}

0 commit comments

Comments
 (0)