(original) (raw)

changeset: 85383:8345fb616cbd parent: 85379:7b1da249ab6d parent: 85382:d5334d8907dc user: Christian Heimes christian@cheimes.de date: Sun Aug 25 14:57:38 2013 +0200 files: Misc/NEWS Modules/selectmodule.c description: Issue #11973: Fix a problem in kevent. The flags and fflags fields are now properly handled as unsigned. diff -r 7b1da249ab6d -r 8345fb616cbd Misc/NEWS --- a/Misc/NEWS Sun Aug 25 14:19:29 2013 +0200 +++ b/Misc/NEWS Sun Aug 25 14:57:38 2013 +0200 @@ -40,6 +40,9 @@ Library ------- +- Issue #11973: Fix a problem in kevent. The flags and fflags fields are now + properly handled as unsigned. + - Issue #18807: ``pyvenv`` now takes a --copies argument allowing copies instead of symlinks even where symlinks are available and the default. diff -r 7b1da249ab6d -r 8345fb616cbd Modules/selectmodule.c --- a/Modules/selectmodule.c Sun Aug 25 14:19:29 2013 +0200 +++ b/Modules/selectmodule.c Sun Aug 25 14:57:38 2013 +0200 @@ -1733,7 +1733,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 */ /christian@cheimes.de