]> granicus.if.org Git - libevent/commitdiff
Fix a windows compilation regression
authorNick Mathewson <nickm@torproject.org>
Wed, 1 May 2013 02:57:25 +0000 (22:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 1 May 2013 02:57:25 +0000 (22:57 -0400)
This is github issue #57; reported by "efekty". I assume the compiler
is MSVC.

event.c

diff --git a/event.c b/event.c
index 27d1f81894831364783d0acb8148616cfa21f3cb..5a577e9f2312103334961a8b4cc2970f80cdb84c 100644 (file)
--- 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);