diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-25 12:57:38 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-25 12:57:38 (GMT) |
commit | 9dd279a3accb22d17f17c413faac47ef71913486 (patch) | |
tree | 402f7010e12334f036a86d216e8f6c7b9cf5f3ae /Modules/selectmodule.c | |
parent | cfa47962c2cedbdefc86f1f4f3b24ec489f326c8 (diff) | |
parent | f1fe15982287c5d026e8033b286533e867b51857 (diff) | |
download | cpython-9dd279a3accb22d17f17c413faac47ef71913486.zip cpython-9dd279a3accb22d17f17c413faac47ef71913486.tar.gz cpython-9dd279a3accb22d17f17c413faac47ef71913486.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index ebd871c..5da0d92 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1733,7 +1733,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 */ |