diff options
| author | Guido van Rossum <guido@python.org> | 2005-09-14 18:15:03 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2005-09-14 18:15:03 +0000 |
| commit | e2f5adbc78ade2d280101238a1dc9e7bae2016d6 (patch) | |
| tree | 6f10854756ebb669f682537c8c7bfb11aa205305 /Modules/pwdmodule.c | |
| parent | e42f446482780553e3e0b3faae1f0300c0a3206d (diff) | |
| download | cpython-git-e2f5adbc78ade2d280101238a1dc9e7bae2016d6.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/pwdmodule.c')
| -rw-r--r-- | Modules/pwdmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 805d4d9a2c..f418e43c9a 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -102,9 +102,9 @@ See pwd.__doc__ for more on password database entries."); static PyObject * pwd_getpwuid(PyObject *self, PyObject *args) { - int uid; + unsigned int uid; struct passwd *p; - if (!PyArg_ParseTuple(args, "i:getpwuid", &uid)) + if (!PyArg_ParseTuple(args, "I:getpwuid", &uid)) return NULL; if ((p = getpwuid(uid)) == NULL) { PyErr_Format(PyExc_KeyError, |
