summaryrefslogtreecommitdiffstats
path: root/Modules
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)
commit42831fefa7fb1eab72d90975464099faa5b38998 (patch)
treee5f3c3b76591a252978a984e14fd264e4bfd97d6 /Modules
parenta0c8373e32f5d0512f81dc5ff2d55c51321932eb (diff)
downloadcpython-42831fefa7fb1eab72d90975464099faa5b38998.zip
cpython-42831fefa7fb1eab72d90975464099faa5b38998.tar.gz
cpython-42831fefa7fb1eab72d90975464099faa5b38998.tar.bz2
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/selectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 00d5f6c..6a36521 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 */