summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-08-25 12:57:00 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-08-25 12:57:00 (GMT)
commitf1fe15982287c5d026e8033b286533e867b51857 (patch)
treeddbf4e265445d01b9cf3b6a5fa837821c32f61ca /Modules/selectmodule.c
parent61636e7105bac4753f6796834b899ad30aeee492 (diff)
downloadcpython-f1fe15982287c5d026e8033b286533e867b51857.zip
cpython-f1fe15982287c5d026e8033b286533e867b51857.tar.gz
cpython-f1fe15982287c5d026e8033b286533e867b51857.tar.bz2
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 92d0e67..603a2b6 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 */