From 1dbd238c150e6f31575f76fd14690167a3b0249a Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 17 Mar 2020 11:18:36 -0700 Subject: [PATCH] fix a pointer-to-int cast error (cherry picked from commit 6b766460375e1069bd8510bf6ea77597e421641e) --- lib/isc/tests/timer_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/tests/timer_test.c b/lib/isc/tests/timer_test.c index c53c4ca832..af753849e7 100644 --- a/lib/isc/tests/timer_test.c +++ b/lib/isc/tests/timer_test.c @@ -13,6 +13,7 @@ #if HAVE_CMOCKA +#include #include #include #include @@ -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; }