From 74c10894117f9dd2b230ec8d0e30d41c08df3b45 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 29 Jan 2019 21:31:19 +0300 Subject: [PATCH] evmap: use approparite type for changes to avoid warnings under windows --- evmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evmap.c b/evmap.c index 31ab4fee..9f46dd0f 100644 --- a/evmap.c +++ b/evmap.c @@ -859,7 +859,7 @@ event_changelist_add_(struct event_base *base, evutil_socket_t fd, short old, sh struct event_changelist *changelist = &base->changelist; struct event_changelist_fdinfo *fdinfo = p; struct event_change *change; - short evchange = EV_CHANGE_ADD | (events & (EV_ET|EV_PERSIST|EV_SIGNAL)); + ev_uint8_t evchange = EV_CHANGE_ADD | (events & (EV_ET|EV_PERSIST|EV_SIGNAL)); event_changelist_check(base); @@ -889,7 +889,7 @@ event_changelist_del_(struct event_base *base, evutil_socket_t fd, short old, sh struct event_changelist *changelist = &base->changelist; struct event_changelist_fdinfo *fdinfo = p; struct event_change *change; - short del = EV_CHANGE_DEL | (events & EV_ET); + ev_uint8_t del = EV_CHANGE_DEL | (events & EV_ET); event_changelist_check(base); change = event_changelist_get_or_construct(changelist, fd, old, fdinfo); -- 2.40.0