]> granicus.if.org Git - python/commitdiff
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
authorChristian Heimes <christian@cheimes.de>
Sun, 25 Aug 2013 12:57:00 +0000 (14:57 +0200)
committerChristian Heimes <christian@cheimes.de>
Sun, 25 Aug 2013 12:57:00 +0000 (14:57 +0200)
properly handled as unsigned.

Misc/NEWS
Modules/selectmodule.c

index 3e1a486120633dbef6b8ca63807e0b255b50edf6..c295fc39acac79f30b81a597ce327bb619a44299 100644 (file)
--- 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
index 00d5f6c058c512b0d9191d7b47c87584e0ec72f8..6a3652160a944fe91c173fac60211c5212a06c1a 100644 (file)
@@ -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 */