Mercurial > cpython-lru_cache-weakref
diff Modules/selectmodule.c @ 85384:8eac75276e5b 2.7
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Sun, 25 Aug 2013 14:57:00 +0200 |
| parents | a4091c1de27a |
| children |
line wrap: on
line diff
--- a/Modules/selectmodule.c Sun Aug 25 14:44:27 2013 +0200 +++ b/Modules/selectmodule.c Sun Aug 25 14:57:00 2013 +0200 @@ -1270,7 +1270,7 @@ 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 */
