diff -r b2c17681404f Modules/fcntlmodule.c --- a/Modules/fcntlmodule.c Fri Nov 07 22:33:19 2014 +0200 +++ b/Modules/fcntlmodule.c Sat Nov 08 17:13:26 2014 +0200 @@ -34,7 +34,7 @@ fcntl_fcntl(PyObject *self, PyObject *ar { int fd; int code; - long arg; + int arg; int ret; char *str; Py_ssize_t len; @@ -61,7 +61,7 @@ fcntl_fcntl(PyObject *self, PyObject *ar PyErr_Clear(); arg = 0; if (!PyArg_ParseTuple(args, - "O&i|l;fcntl requires a file or file descriptor," + "O&i|I;fcntl requires a file or file descriptor," " an integer and optionally a third integer or a string", conv_descriptor, &fd, &code, &arg)) { return NULL;