From 3a8741c8a96cc496409d9c28acafcaffccde92ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Wed, 20 Nov 2024 13:08:54 +0100 Subject: [PATCH] Fix build of unit test on 32b architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes unittest build failure on i686 platform. In file included from tests/isc/time_test.c:24: tests/isc/time_test.c: In function ‘run_test_isc_time_formatISO8601TZms_test’: tests/isc/time_test.c:284:32: error: passing argument 2 of ‘_assert_in_set’ from incompatible pointer type [-Wincompatible-pointer-types] 284 | assert_in_set(buf[23], plus_minus, sizeof(plus_minus)); | ^~~~~~~~~~ | | | size_t * {aka unsigned int *} /usr/include/cmocka.h:2369:64: note: expected ‘const long long unsigned int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’} 2369 | const LargestIntegralType value, const LargestIntegralType values[], --- tests/isc/time_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/isc/time_test.c b/tests/isc/time_test.c index d3a7c016f4..26d2775725 100644 --- a/tests/isc/time_test.c +++ b/tests/isc/time_test.c @@ -280,7 +280,7 @@ ISC_RUN_TEST_IMPL(isc_time_formatISO8601TZms_test) { assert_int_equal(buf[16], ':'); assert_int_equal(buf[19], '.'); - size_t plus_minus[2] = { '+', '-' }; + LargestIntegralType plus_minus[2] = { '+', '-' }; assert_in_set(buf[23], plus_minus, sizeof(plus_minus)); assert_int_equal(buf[26], ':');