diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-11-02 17:46:24 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-11-02 17:46:24 (GMT) |
commit | 94a83fdc157a8d393bcee3321ccdb5a818a2bf78 (patch) | |
tree | 08c130f70c7785e9b06fea0b77b663285e1c0b56 /Modules | |
parent | d631ebe20b2a94bff9065bae77230d322f24f398 (diff) | |
download | cpython-94a83fdc157a8d393bcee3321ccdb5a818a2bf78.zip cpython-94a83fdc157a8d393bcee3321ccdb5a818a2bf78.tar.gz cpython-94a83fdc157a8d393bcee3321ccdb5a818a2bf78.tar.bz2 |
Fix SF #632624, test_resource failure on alpha/64bit
Return PyLongs instead ot PyInts.
On alphas, 9223372036854775807 became -1.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/resource.c b/Modules/resource.c index b1dd5d1..8653f03 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -132,7 +132,7 @@ resource_getrlimit(PyObject *self, PyObject *args) (LONG_LONG) rl.rlim_max); } #endif - return Py_BuildValue("ii", (long) rl.rlim_cur, (long) rl.rlim_max); + return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); } static PyObject * |