Merge branch '1684-timer-test-build-v9_11' into 'v9_11'

fix a pointer-to-int cast error

See merge request isc-projects/bind9!3248
This commit is contained in:
Evan Hunt 2020-03-17 20:27:23 +00:00
commit fa320d03a2

View file

@ -13,6 +13,7 @@
#if HAVE_CMOCKA
#include <inttypes.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
@ -165,7 +166,7 @@ ticktock(isc_task_t *task, isc_event_t *event) {
}
expected_event_type = ISC_TIMEREVENT_LIFE;
if ((isc_timertype_t) event->ev_arg == isc_timertype_ticker) {
if ((uintptr_t)event->ev_arg == isc_timertype_ticker) {
expected_event_type = ISC_TIMEREVENT_TICK;
}