diff options
author | Guido van Rossum <guido@python.org> | 2005-09-14 18:09:42 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2005-09-14 18:09:42 +0000 |
commit | bb4d09e10cf209f35d4ee1e735fcc159ca3b8b9a (patch) | |
tree | f4126b18b144b0078fcfa9b9ac9837c7159f61eb /Modules/grpmodule.c | |
parent | 4e6a5d988afa210db317940a3d5a7bde0d144804 (diff) | |
download | cpython-bb4d09e10cf209f35d4ee1e735fcc159ca3b8b9a.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.c | 4 |
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); |