summaryrefslogtreecommitdiff
path: root/Modules/grpmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-09-14 18:09:42 +0000
committerGuido van Rossum <guido@python.org>2005-09-14 18:09:42 +0000
commit8ee3e5aa9306a00573817e237bed4a482473e818 (patch)
tree6d5dc937d3b495c5295fe6c5c4b3e212ab5509c0 /Modules/grpmodule.c
parent539c662f10b41d15f658cabfa03cc02902862adc (diff)
downloadcpython-git-8ee3e5aa9306a00573817e237bed4a482473e818.tar.gz
- Changes donated by Elemental Security to make it work on AIX 5.3
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
Diffstat (limited to 'Modules/grpmodule.c')
-rw-r--r--Modules/grpmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c
index 136dca01b7..5f33fe972f 100644
--- a/Modules/grpmodule.c
+++ b/Modules/grpmodule.c
@@ -85,9 +85,9 @@ mkgrent(struct group *p)
static PyObject *
grp_getgrgid(PyObject *self, PyObject *args)
{
- int gid;
+ unsigned int gid;
struct group *p;
- if (!PyArg_ParseTuple(args, "i:getgrgid", &gid))
+ if (!PyArg_ParseTuple(args, "I:getgrgid", &gid))
return NULL;
if ((p = getgrgid(gid)) == NULL) {
PyErr_Format(PyExc_KeyError, "getgrgid(): gid not found: %d", gid);