From 7b91c9c2e2aa4d121b8ba791f089a3470ecd0c28 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 26 Oct 2024 13:24:05 +0000 Subject: [PATCH] tests: util: Cast values for printing Signed-off-by: Michael Tremer --- tests/libpakfire/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libpakfire/util.c b/tests/libpakfire/util.c index 81da4cf67..8189392d6 100644 --- a/tests/libpakfire/util.c +++ b/tests/libpakfire/util.c @@ -70,7 +70,7 @@ static int test_base64(const struct test* t) { ASSERT_SUCCESS(pakfire_b64decode(t->ctx, &output, &length, base64)); // Print the decoded data - printf("%.*s\n", length, output); + printf("%.*s\n", (int)length, (char*)output); // Check that we encoded the correct amount of data ASSERT_EQUALS(length, sizeof(data)); -- 2.39.5