From 13b873027d65725895b8d179525fbfdb22f1cd85 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 28 Nov 2021 00:02:11 +0100 Subject: [PATCH] tests: fix compilation warning in marshalling test --- tests/check_marshal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/check_marshal.c b/tests/check_marshal.c index 4f934462..195078f8 100644 --- a/tests/check_marshal.c +++ b/tests/check_marshal.c @@ -412,7 +412,7 @@ START_TEST(test_too_small_unmarshal) { struct struct_nestedpointers *destination; void *buffer; size_t len, len2; - int i, j; + size_t i, j; log_register(donothing); @@ -426,8 +426,8 @@ START_TEST(test_too_small_unmarshal) { for (i = 0; i < len; i++) { len2 = struct_nestedpointers_unserialize(buffer, 1, &destination); fail_unless(len2 == 0, - "Should not be able to deserialize, too small (%d<%d)", - i, len); + "Should not be able to deserialize, too small (%zu<%zu)", + i, len); } } len2 = struct_nestedpointers_unserialize(buffer, len + 5, &destination); -- 2.39.5