]> 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 62e90788c961562c5007e6f972037986da2fc0b8..35cba80e0bdc0d9da981758938135b26d8e14a1d 100644 (file)
--- 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.
 
index 92d0e67542c08fcaac8b05dbabad7a93bb3e30d5..603a2b670b083d763f9c1dfaf9ce50d37c268f9a 100644 (file)
@@ -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 */