From e153956ea50d8d3740b6f1e473037aaf3c4b9ec2 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Mon, 16 Dec 2024 16:29:03 +0100 Subject: [PATCH] tests: fixed compatibility issue Signed-off-by: Leonardo Alminana --- tests/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/profile.c b/tests/profile.c index 3d64b65..5b114cb 100644 --- a/tests/profile.c +++ b/tests/profile.c @@ -72,7 +72,7 @@ void print_profile(struct cprof_profile *profile) if (sample->timestamps_count > 0) { printf(" Timestamps:\n"); - for (size_t i = 0; i < sample->timestamps_count; ++i) { + for (i = 0; i < sample->timestamps_count; ++i) { printf(" Timestamp %zu: %" PRIu64 " ns\n", i, sample->timestamps_unix_nano[i]); } } else {