You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
720 B
23 lines
720 B
6 years ago
|
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
|
||
|
index 997867a..2bd2f55 100644
|
||
|
--- a/Modules/fcntlmodule.c
|
||
|
+++ b/Modules/fcntlmodule.c
|
||
|
@@ -34,7 +34,7 @@ fcntl_fcntl(PyObject *self, PyObject *args)
|
||
|
{
|
||
|
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 *args)
|
||
|
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;
|