Commit 6b766460 authored by Evan Hunt's avatar Evan Hunt
Browse files

fix a pointer-to-int cast error

parent 58cc273b
Pipeline #36837 canceled with stages
in 9 minutes and 7 seconds
......@@ -11,6 +11,7 @@
#if HAVE_CMOCKA
#include <inttypes.h>
#include <sched.h> /* IWYU pragma: keep */
#include <setjmp.h>
#include <stdarg.h>
......@@ -191,7 +192,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment