From: Christian Heimes Date: Sun, 25 Aug 2013 12:57:00 +0000 (+0200) Subject: Issue #11973: Fix a problem in kevent. The flags and fflags fields are now X-Git-Tag: v3.4.0a2~120^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1fe15982287c5d026e8033b286533e867b51857;p=python Issue #11973: Fix a problem in kevent. The flags and fflags fields are now properly handled as unsigned. --- diff --git a/Misc/NEWS b/Misc/NEWS index 62e90788c9..35cba80e0b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -66,6 +66,9 @@ Core and Builtins Library ------- +- Issue #11973: Fix a problem in kevent. The flags and fflags fields are now + properly handled as unsigned. + - Issue #17702: On error, os.environb now removes suppress the except context when raising a new KeyError with the original key. diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 92d0e67542..603a2b670b 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1638,7 +1638,7 @@ kqueue_event_init(kqueue_event_Object *self, PyObject *args, PyObject *kwds) PyObject *pfd; static char *kwlist[] = {"ident", "filter", "flags", "fflags", "data", "udata", NULL}; - static char *fmt = "O|hhi" DATA_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent"; + static char *fmt = "O|hHI" DATA_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent"; EV_SET(&(self->e), 0, EVFILT_READ, EV_ADD, 0, 0, 0); /* defaults */