fix a pointer-to-int cast error

(cherry picked from commit 6b76646037)
This commit is contained in:
Evan Hunt 2020-03-17 11:18:36 -07:00 committed by Ondřej Surý
parent 76b1979e1e
commit 4e0ebd2e75

View file

@ -158,7 +158,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;
}