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: v2.7.6rc1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42831fefa7fb1eab72d90975464099faa5b38998;p=thirdparty%2FPython%2Fcpython.git 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 3e1a48612063..c295fc39acac 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,9 @@ Core and Builtins Library ------- +- Issue #11973: Fix a problem in kevent. The flags and fflags fields are now + properly handled as unsigned. + - Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. - Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 00d5f6c058c5..6a3652160a94 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1270,7 +1270,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 */