diff options
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r-- | Modules/selectmodule.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 3283bf7..1e7ba4c 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -375,11 +375,10 @@ static PyObject * poll_register(pollObject *self, PyObject *args) { PyObject *o, *key, *value; - int fd; - short events = POLLIN | POLLPRI | POLLOUT; + int fd, events = POLLIN | POLLPRI | POLLOUT; int err; - if (!PyArg_ParseTuple(args, "O|h:register", &o, &events)) { + if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) { return NULL; } |