summaryrefslogtreecommitdiff
path: root/Modules/fcntlmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-17 10:14:30 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-17 10:14:30 +0200
commit483405bcca9f371bc6910dda7f9b5ba74395682c (patch)
tree3afeb1990bf2ab9d24fdea4409317a08a97af7eb /Modules/fcntlmodule.c
parent77c041ba64f87ac021c2a7a9314d9a3a1145057f (diff)
downloadcpython-git-483405bcca9f371bc6910dda7f9b5ba74395682c.tar.gz
Issue #22883: Got rid of outdated references to PyInt and PyString in comments.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r--Modules/fcntlmodule.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index 1f1cef90eb..780e2222c5 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -152,11 +152,8 @@ fcntl_ioctl_impl(PyModuleDef *module, int fd, unsigned int code, PyObject *ob_ar
/*[clinic end generated code: output=ad47738c118622bf input=a55a6ee8e494c449]*/
{
#define IOCTL_BUFSZ 1024
- /* We use the unsigned non-checked 'I'
- format for the 'code' parameter because Python turns 0x8000000
- into either a large positive number (PyLong or PyInt on 64-bit
- platforms) or a negative number on others (32-bit PyInt)
- whereas the system expects it to be a 32bit bit field value
+ /* We use the unsigned non-checked 'I' format for the 'code' parameter
+ because the system expects it to be a 32bit bit field value
regardless of it being passed as an int or unsigned long on
various platforms. See the termios.TIOCSWINSZ constant across
platforms for an example of this.