From: Nick Mathewson Date: Wed, 1 May 2013 02:57:25 +0000 (-0400) Subject: Fix a windows compilation regression X-Git-Tag: release-2.1.3-alpha~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2925d78b690bb3f17236483d6c60ab868c60e87;p=libevent Fix a windows compilation regression This is github issue #57; reported by "efekty". I assume the compiler is MSVC. --- diff --git a/event.c b/event.c index 27d1f818..5a577e9f 100644 --- a/event.c +++ b/event.c @@ -2048,7 +2048,7 @@ event_debug_unassign(struct event *ev) static int event_finalize_nolock_(struct event_base *base, unsigned flags, struct event *ev, event_finalize_callback_fn cb) { - uint8_t closure = (flags & EVENT_FINALIZE_FREE_) ? + ev_uint8_t closure = (flags & EVENT_FINALIZE_FREE_) ? EV_CLOSURE_EVENT_FINALIZE_FREE : EV_CLOSURE_EVENT_FINALIZE; event_del_nolock_(ev, EVENT_DEL_NOBLOCK);