Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4954b38 commit 857b300Copy full SHA for 857b300
1 file changed
Modules/fcntlmodule.c
@@ -96,6 +96,10 @@ static PyObject *
96
fcntl_ioctl(PyObject *self, PyObject *args)
97
{
98
int fd;
99
+ /* In PyArg_ParseTuple below, use the unsigned int 'I' format for
100
+ the signed int 'code' variable, because Python turns 0x8000000
101
+ into a large positive number (PyLong, or PyInt on 64-bit
102
+ platforms,) whereas C expects it to be a negative int */
103
int code;
104
int arg;
105
int ret;
0 commit comments