changeset: 93454:45e8aed69767 branch: 3.4 parent: 93444:63274cf1b40d user: Serhiy Storchaka date: Mon Nov 10 10:42:26 2014 +0200 files: Misc/NEWS Modules/fcntlmodule.c description: Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian platforms. diff -r 63274cf1b40d -r 45e8aed69767 Misc/NEWS --- a/Misc/NEWS Sun Nov 09 17:20:56 2014 -0800 +++ b/Misc/NEWS Mon Nov 10 10:42:26 2014 +0200 @@ -36,6 +36,9 @@ 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. diff -r 63274cf1b40d -r 45e8aed69767 Modules/fcntlmodule.c --- a/Modules/fcntlmodule.c Sun Nov 09 17:20:56 2014 -0800 +++ b/Modules/fcntlmodule.c Mon Nov 10 10:42:26 2014 +0200 @@ -34,7 +34,7 @@ { int fd; int code; - long arg; + int arg; int ret; char *str; Py_ssize_t len; @@ -61,7 +61,7 @@ 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;