From: Michael Tremer Date: Sat, 26 Oct 2024 13:24:05 +0000 (+0000) Subject: tests: util: Cast values for printing X-Git-Tag: 0.9.30~824 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b91c9c2e2aa4d121b8ba791f089a3470ecd0c28;p=pakfire.git tests: util: Cast values for printing Signed-off-by: Michael Tremer --- 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));