mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-04 22:40:41 -05:00
Fix build of unit test on 32b architecture
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[],
This commit is contained in:
parent
6c46ccc577
commit
3a8741c8a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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], ':');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue