Commit 069bdcbb authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian

platforms.
parent 3454941d
......@@ -37,6 +37,9 @@ Core and Builtins
Library
-------
- Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian
platforms.
- Issues #814253, #9179: Group references and conditional group references now
work in lookbehind assertions in regular expressions.
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment