mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian
platforms.
This commit is contained in:
parent
86e9b6b164
commit
d915b0847d
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue